DeleteFile
fun EventSchemaBuilderScope.DeleteFile(id: String = randomId(), trigger: EventTrigger, fileName: String, events: EventSchemaBuilderScope.() -> Unit = {})
Deletes the file stored under fileName in the client's own file storage. Does not consume incomingData. Dispatches onSuccess (no data) when the deletion completed; onFailure (carrying the Throwable, logged) when it failed.
Parameters
id
Unique identifier of this event. Defaults to a random id.
trigger
Trigger that fires this event, built via EventTriggers.
fileName
Name of the file to delete.
events
Child events chained after this one, wired to its triggers (onSuccess, onFailure).