deleteImage

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

Deletes the image 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 deleteImage(url: String): Result<Unit>

Deletes an image 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 image to be deleted.

See also

Result.success
Result.failure