Directus (flagbit) icon

Directus (flagbit)

Consume Directus API

Folder → Delete Multiple

AI-generated

Overview

This node operation deletes multiple folders in a system by specifying an array of folder primary keys. It is useful in scenarios where bulk deletion of folders is required, such as cleaning up unused or obsolete folders in a content management system or file storage service.

Use Case Examples

  1. Deleting multiple project folders by providing their unique IDs to free up storage space.
  2. Removing a batch of user-created folders that are no longer needed in an organizational system.

Properties

Name Meaning
Keys (JSON) An array of folder primary keys to specify which folders to delete.

Output

JSON

  • deletedKeys - Array of primary keys of the folders that were successfully deleted.
  • errors - Any errors encountered during the deletion process, if applicable.

Dependencies

  • Requires API authentication to the folder management system to perform deletions.

Troubleshooting

  • Ensure the provided keys array is valid JSON and contains existing folder primary keys.
  • Check API authentication credentials if deletion requests fail due to authorization errors.
  • Verify that the folders to be deleted are not locked or in use, which might prevent deletion.

Discussion