iCloud.docDelete()

Type Function
Return value none
Revision Release 2022.3683
Keywords iCloud, sync, storage, document, docDelete
See also iCloud.docCheck()
iCloudDocEvent
iCloud.*

Overview

Deletes file from iCloud Document storage and invokes the onComplete listener function with an iCloudDocEvent upon completion.

Syntax

iCloud.docDelete( params )
params (required)

Table. Table containing method-specific parameters — see the next section for details.

Parameter Reference

Valid keys for the params table include:

Example

local function docListener( event )

    if event.isError then
        print( event.error )
        print( event.errorCode )
    end
end

iCloud.docDelete(
    {
        filename = "test.txt",
        onComplete = docListener
    }
)