deleteFile

fun deleteFile(channelType: String, channelId: String, url: String): Call<Unit>

Deletes the file represented by url from the given channel.

Return

Executable async Call responsible for deleting a file.

Parameters

channelType

The channel type. ie messaging.

channelId

The channel id. ie 123.

url

The URL of the file to be deleted.

See also


Deletes a file not related to any channel.

Return

The empty Result object, or Result object with exception if the operation failed.

Executable async Call which completes with Result containing an instance of Unit if the file was successfully deleted.

Parameters

url

The URL of the file to be deleted.

See also