Updated on 2023-03-21 GMT+08:00

Deleting an Object

Sample code:

OBSDeleteObjectRequest *request = [[OBSDeleteObjectRequest alloc] initWithBucketName:@"bucketname" objectKey:@"objectname"];
[client deleteObject:request completionHandler:^(OBSDeleteObjectResponse *response, NSError *error) {
    NSLog(@"%@",response);
}];