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

  1. Call deleteLocation(location) on your namespace.
  2. Pass the folder’s location path you want to remove.
  3. The API deletes all files and subfolders at that path.
  4. The response returns:
    • deleted: IDs of files/folders removed.
    • errors: items that failed with reasons.
  5. You can use the SDK or direct API to delete a folder and its contents: