LiveConnectClient deleteWithPath:delegate:userState method

Performs an asynchronous delete of a file with a given path.

The method also has the option of specifying a LiveOperationDelegate and user state.

Signature

- (LiveOperation *) deleteWithPath:(NSString *)path
                          delegate:(id <LiveOperationDelegate>)delegate
                         userState:(id)userState;

Parameters

Name

Datatype

Description

path

NSString

Required. The path or object ID of the resource to delete.

delegate

id <LiveOperationDelegate>

Optional. An instance of a class that implements the LiveOperationDelegate protocol.

userState

id

Optional. An object that is used to track the asynchronous state. The userState object is found in the userState property of the LiveOperation instance that is passed as a parameter when a LiveOperationDelegate protocol method is invoked.

Returns

Type: LiveOperation

The asynchronous operation that is used to track the asynchronous REST API request and get response data once the operation completes.

Defined in

LiveConnectClient.h

Remarks

This is a helper function that makes calls using HTTP DELETE to the Live SDK REST reference.

See also

LiveConnectClient class