Directus / @directus/sdk / rest / deleteField
Function: deleteField() ​
deleteField<
Schema>(collection,field):RestCommand<void,Schema>
Defined in: rest/commands/delete/fields.ts:14
Deletes the given field in the given collection.
Type Parameters ​
• Schema
Parameters ​
collection ​
string
field ​
string
Returns ​
RestCommand<void, Schema>
Throws ​
Will throw if collection is empty
Throws ​
Will throw if field is empty