Skip to content

Deleting a Directory

To delete a directory from the Backendless file storage, it must be identified by the its path. Directories in the Backendless storage have the following URL structure:<application id>/<REST API Key>/files/<path>

The API to delete a directory uses the <path> element from the URL above.


Future<int> Backendless.files.removeDirectory(String directoryPath, [String pattern, bool recursive]);


Argument                Description
path path of the directory to delete.


Backendless.files.removeDirectory("pictures").then((response) {
  print("Directory has been deleted");