Actions118
- Item Actions
- Activity Actions
- Asset Actions
- Authentication Actions
- Collection Actions
- Extension Actions
- Field Actions
- File Actions
- Folder Actions
- Permission Actions
- Preset Actions
- Relation Actions
- Revision Actions
- Role Actions
- Server Actions
- Setting Actions
- User Actions
- Utility Actions
- Webhook Actions
Item → Delete
AI-generatedOverview
This node deletes an item from a specified collection in a Directus database. It is useful for scenarios where you need to remove specific records by their unique ID from a collection, such as deleting outdated or incorrect data entries.
Use Case Examples
- Deleting a user record from a 'users' collection by specifying the user ID.
- Removing a product entry from an 'inventory' collection based on its unique ID.
Properties
| Name | Meaning |
|---|---|
| ID | The unique identifier of the item to be deleted from the collection. |
| Collection Name | The unique name of the parent collection from which the item will be deleted. |
Output
JSON
success- Indicates whether the deletion was successful (true or false).id- The ID of the deleted item.
Dependencies
- Requires connection to a Directus API instance with appropriate authentication credentials.
Troubleshooting
- Ensure the provided ID exists in the specified collection; otherwise, the deletion will fail.
- Verify that the collection name is correct and accessible with the current API credentials.
- Check API permissions to confirm the user has rights to delete items in the collection.
Links
- Directus API - Delete an Item - Official documentation for deleting an item in a Directus collection via API.