Closed tranhieutt closed 8 years ago
Sorry, I have a question about delete function in SDK. If i want delete 1 item, folder or file, i can use source code:
[[[self.client.files getById:data.fileId] addCustomHeaderWithName:@"If-Match" value:@"*"] deleteWithCallback:^(int status, MSOrcError *error) { NSLog(@"OK"); }];
So, if I want to delete multi-item, question is:
If SDK doesn't support delete multi-item, I must use loop for. Ex: for (NSString *fileID in arrrayOfFileID) {
[[[self.client.files getById: fileID] addCustomHeaderWithName:@"If-Match" value:@"*"] deleteWithCallback:^(int status, MSOrcError *error) { NSLog(@"OK"); }];
}
I think solution above is not good for iOS app.
Please show me API can delete multi-items. Thank you.
Hi @tranhieutt , the API doesn't support deleting multi-items. You should use the second approach.
Thanks!
Sorry, I have a question about delete function in SDK. If i want delete 1 item, folder or file, i can use source code:
So, if I want to delete multi-item, question is:
If SDK doesn't support delete multi-item, I must use loop for. Ex: for (NSString *fileID in arrrayOfFileID) {
}
I think solution above is not good for iOS app.
Please show me API can delete multi-items. Thank you.