delete

fun delete(    reference: ResolverReference,     success: (UUID?) -> Unit,     failure: (ErrorCode, Throwable?) -> Unit)

Delete the file at the provided ResolverReference.

Parameters

reference

The ResolverReference that indicates the location of the file.

success

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

failure

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