deleteFile

abstract fun deleteFile(file: RemoteFile): Call<Boolean>

Delete a specified file.

Deletes the provided RemoteFile entry.

Return

Call resulting in true if operation was successful, false otherwise.

See also

Parameters

file

target file. Must not be null.

Throws

on a null file argument.


abstract fun deleteFile(fileId: Long): Call<Boolean>

Delete a specified file.

Deletes the remote file with the specified file id.

For more information, see the related documentation page.

Return

Call resulting in true if operation was successful, false otherwise.

Parameters

fileId

of the file to be deleted


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

Delete a specified file.

Deletes the remote file with the specified path.

For more information, see the related documentation page.

Return

Call resulting in true if operation was successful, false otherwise.

Parameters

path

of the file to be deleted

Throws

on a null or empty path argument.