Directus / @directus/sdk / rest / deleteField
Function: deleteField() ​
deleteField<
Schema
>(collection
,field
):RestCommand
<void
,Schema
>
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