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
Activity → Delete
AI-generatedOverview
This node deletes an activity object identified by a unique ID in the Directus system. It is useful for scenarios where you need to remove specific activity records, such as cleaning up logs or removing outdated user actions.
Use Case Examples
- Deleting an activity by its ID to maintain a clean activity log.
- Removing a specific user action record from the system.
Properties
| Name | Meaning |
|---|---|
| ID | Unique identifier for the activity object to be deleted |
Output
JSON
success- Indicates whether the deletion was successfuldeletedId- The ID of the activity that was deleted
Dependencies
- Directus API access with appropriate permissions to delete activity records
Troubleshooting
- Ensure the provided ID exists; otherwise, the deletion will fail with an error indicating the object was not found.
- Check API permissions to confirm the node has rights to delete activity objects.
- Validate that the ID is a positive integer as required by the input property constraints.