deleteFolder

abstract fun deleteFolder(folderId: Long): Call<Boolean>

Delete a specified folder recursively.

Same as calling deleteFolder (long, String)} with recursively set to false.

Return

Call

Parameters

folderId

The id if the folder you would like to delete


abstract fun deleteFolder(folderId: Long, recursively: Boolean): Call<Boolean>

Delete a specified folder recursively.

For more information, see the related documentation pages here

and here.

Return

Call resulting in true if the operation is successful, or false otherwise

Parameters

folderId

The id of the folder you would like to delete

recursively

If set to true all child files will also be deleted.

If set to false, the operation will fail on any non-empty folder


abstract fun deleteFolder(folder: RemoteFolder): Call<Boolean>

Delete a specified folder recursively.

Return

the call

See also

#deleteFolder(long)

Parameters

folder

The RemoteFolder you would like to delete. Must not be null.

Throws

on a null folder argument.


abstract fun deleteFolder(folder: RemoteFolder, recursively: Boolean): Call<Boolean>

Delete a specified folder recursively.

Return

Call resulting in true if the operation is successful, or false otherwise

See also

#deleteFolder(long, boolean)

Parameters

folder

The RemoteFolder you would like to delete. Must not be null.

recursively

If set to true all child files will also be deleted.

If set to false, the operation will fail on any non-empty folder

Throws

on a null folder argument.


abstract fun deleteFolder(path: String): Call<Boolean>

Delete a specified folder recursively.

Same as calling deleteFolder (String, String)} with recursively set to false.

Return

Call

Parameters

path

The path of the folder you would like to delete

Throws

on a null or empty path argument.


abstract fun deleteFolder(path: String, recursively: Boolean): Call<Boolean>

Delete a specified folder recursively.

For more information, see the related documentation pages here

and here.

Return

Call resulting in true if the operation is successful, or false otherwise

Parameters

path

The path of the folder you would like to delete

recursively

If set to true all child files will also be deleted.

If set to false, the operation will fail on any non-empty folder

Throws

on a null or empty path argument.