Folder Deletion
This scenario demonstrates how to delete folders and their contents in the Circularo platform. Folder deletion is a powerful operation that removes both the folder structure and all documents contained within it. Key features:- Delete folders and all their contents in a single operation
- Permanently remove folder hierarchies when no longer needed
- Clean up organizational structures efficiently
- Remove both the folder and all documents it contains
Prerequisites
Before deleting folders, you need:- A valid authentication token (see the “Authentication & Security” section for details)
- The folder ID of the folder you want to delete
- Edit permissions for the folder and all documents within it
- Careful consideration, as folder deletion cannot be undone when using hard delete
Step 1 - Delete a folder and its contents
This endpoint deletes a folder and all documents contained within it. In Circularo, folders are treated as special document types, so the deletion is performed using the document deletion endpoint.- The documents array contains the folder ID to delete
- The hardDelete parameter set to true permanently removes the folder and its contents
- All documents within the folder are also deleted in the same operation
- Nested folders within the target folder are also removed recursively
- The folder structure has been removed from the system
- All documents contained within the folder have been deleted
Folder Deletion Summary
You have successfully learned how to delete folders and their contents in the Circularo system.Key Concepts
- Folder Deletion: Removes both the folder structure and all documents it contains
- Recursive Deletion: Automatically removes all nested folders and their contents
- Permission Requirements: User must have edit rights to the folder and all its contents
Best Practices
- Always verify the folder contents before deletion to avoid unintended data loss
- Consider exporting important folder contents before deletion for backup purposes
- Implement proper confirmation steps in your user interface before triggering folder deletion
Example Implementation
See our OpenAPI documentation to learn about the full set of API endpoints and parameters.
Please use proper exception handling and function decomposition in your own code. The code is provided for illustrative purposes only and is not intended for production use.