Skip to content

Instantly share code, notes, and snippets.

Last active Dec 31, 2015
What would you like to do?
Couchbase LiteをCBLDodumentで削除
- (void)deleteDocument:(NSString *)documentId{
// AppDelegateを呼ぶ
NSError *err;
AppDelegate *ap = ApplicationDelegate;
CBLDocument* doc = [ap.database documentWithID:documentId];
// 削除実行
if (![doc deleteDocument:&err]) {
[self showErrorAlert:@"Couldn't delete the item"];
NSLog(@"Delete Complete!");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment