delete

open override fun delete(success: (UUID?) -> Unit, failure: (ErrorCode, Throwable?) -> Unit)

Delete the wrapped file from its storage location.

Parameters

success

Accepts the FileManager file id if remove successful. Maybe null if file not present in FileManager.

failure

A function that accepts a ErrorCode that describes the nature of the failure and an optional Throwable.