code: private Status deleteLocalDocument(
              final String inDocID, String inRevID, final boolean obeyMVCC) {
          final String docID = inDocID;
          final String revID = inRevID;
  
          if (docID == null || !docID.startsWith("_local/"))
              return new Status(Status.BAD_ID);
          if (obeyMVCC && revID == null)
              // Didn't specify a revision to delete: 404 or a 409, depending
              return new Status(getLocalDocument(docID, null) != null ?
                      Status.CONFLICT : Status.NOT_FOUND);
  
          return inTransaction(new Task() {
              @Override
              public Status run() {
                  try {
                      byte[][] metaNbody = forest.rawGet("_local", docID);
                      if (metaNbody == null) {
                          return new Status(Status.NOT_FOUND);
                      } else if (obeyMVCC && revID != null &&
                              !revID.equals(new String(metaNbody[0]))) {
                          return new Status(Status.CONFLICT);
                      } else {
                          forest.rawPut("_local", docID, null, null);
                          return new Status(Status.OK);
                      }
                  } catch (ForestException e) {
                      return ForestBridge.err2status(e);
                  }
              }
          });
      }
docs: CBLDatabase+LocalDocs.m
  - (CBLStatus) deleteLocalDocumentWithID: (NSString*)docID
  revisionID: (NSString*)revID
  obeyMVCC: (BOOL)obeyMVCC;