Directus (flagbit) icon

Directus (flagbit)

Consume Directus API

Activity → Delete

AI-generated

Overview

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

  1. Deleting an activity by its ID to maintain a clean activity log.
  2. 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 successful
  • deletedId - 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.

Discussion