deleteFile

abstract fun deleteFile(channelType: String, channelId: String, userId: String, url: String): Result<Unit>

Deletes the file represented by url from the given channel.

Return

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

See also

Result.success
Result.failure

open fun deleteFile(url: String): Result<Unit>

Deletes a file not related to any channel.

Return

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

Parameters

url

The URL of the file to be deleted.

See also

Result.success
Result.failure