Delete

Deletes the object of the given type and the given ID

Parameters 

  • API version (string)
  • Object type (string)
  • Object ID (string)

iOS 

Swift

1RestClient.shared.requestForDelete(withObjectType:objectId:)
Objective-C

1- (SFRestRequest *)requestForDeleteWithObjectType:(NSString *)objectType
2                                        objectId:(NSString *)objectId
3                                       apiVersion:(nullable NSString *)apiVersion;

Android 

Kotlin

1fun getRequestForDelete(apiVersion: String?, objectType: String?, objectId: String?): RestRequest
Java

1public static RestRequest getRequestForDelete(String apiVersion, String objectType, String objectId)

See Also 

We've Moved

Welcome to the new home of the Mobile SDK Developer Guide! For now, the Japanese guide can be found in PDF form.