Folder
Delete Folder
In Trelae, folders are virtual paths that group files.
To delete a folder, you use its location path, which removes the folder itself and everything inside it — all files and subfolders. This action is permanent and cannot be undone.
Use with care to avoid accidentally removing important data.
How It Works
- Call
deleteLocation(location)
on your namespace. - Pass the folder’s location path you want to remove.
- The API deletes all files and subfolders at that path.
- The response returns:
deleted
: IDs of files/folders removed.errors
: items that failed with reasons.
- You can use the SDK or direct API to delete a folder and its contents: