Directus / @directus/sdk / rest / deleteFile
Function: deleteFile() ​
deleteFile<
Schema
>(key
):RestCommand
<void
,Schema
>
Delete an existing file.
Type Parameters ​
• Schema
Parameters ​
• key: DirectusFile
<Schema
>["id"
]
Returns ​
RestCommand
<void
, Schema
>
Throws ​
Will throw if key is empty