Files: delete
files_deleteDelete a stored file by ID, removing it from project storage and cascading to records that reference it by default. Check with files_get first if unsure.
Instructions
Delete a file by ID. Removes the file from the project's storage by its id. Records that reference it through a file field follow that field's on-delete rule; with the default, CASCADE, they are deleted too. To see what is stored first, use files_get. It changes or deletes existing data, so check with the user before running it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | File ID to delete. Find it with files_list. |