Deletes a Post <-> Tag association

@param {Object} body
@param {Function} cb
765949
function del(body, cb) {
  db.getClient(function(err, client, done) {
    client.query(DELETE, [body.post_id, body.tag_id], function(err, r) {
      if(err) {
        cb(err);
        done(err);
      } else {
        cb(null, r.rowCount);
        done();
      }
    });
  });
}
1151421
def delete(self, using=None):
        
        if self.is_alone:
            # The default way of operating is to trigger the deletion of the associated topic
            # only if the considered post is the only post embedded in the topic
            self.topic.delete()
        else:
            super(AbstractPost, self).delete(using)
            self.topic.update_trackers()
705960
function deleteAssociationPosition(req, res) {
  if(redirect(req.params.id, '../', '/tags', res)) {
    return;
  }

  var id = req.params.id;
  var rootUrl = req.protocol + '://' + req.get('host');
  var queryPath = req.originalUrl;
  req.chickadee.removeAssociation(req, id, 'position', rootUrl, queryPath,
                                  function(response, status) {
    res.status(status).json(response);
  });
}
1085478
function disconnect(cb) {
  if (connection) {
    log.logger.debug('Mongoose disconnected');
    connection.close(cb);
  } else {
    cb();
  }
}
51495
function (cb) {
		var name = this.name,
			data = JSON.parse(window.localStorage[name] || (window.localStorage[name] = '[]')),
			res = cb.call(this, data);
		if (res !== false) {
			can.each(data, function (todo) {
				delete todo.editing;
			});
			window.localStorage[name] = JSON.stringify(data);
		}
	}
822218
function trashOrUntrashPages(cb) {
          const ids = tree.map(p => p._id);
          return self.apos.docs.db.update({ _id: { $in: ids } }, action, {
            multi: true
          }, (err, res) => {
            cb(err);
          });
        }
1045812
@UpdateHandler(name = "delete_token", file = "CouchDbOneTimeToken_delete.js")
    public void deleteToken(final CouchDbGoogleAuthenticatorToken token) {
        db.callUpdateHandler(stdDesignDocumentId, "delete_token", token.getCid(), null);
    }
245536
def record_remove_tags(object_id, input_params={}, always_retry=True, **kwargs):
    
    return DXHTTPRequest('/%s/removeTags' % object_id, input_params, always_retry=always_retry, **kwargs)
685549
function (subscription, cb) {

		Subscription.destroy(subscription.id)
	    .exec(function (err, destroyedSubscriptions){
	      if (err) return cb(err);
	      if (!destroyedSubscriptions) return cb(null, subscription);
	      Subscription.afterStripeCustomerSubscriptionDeleted(destroyedSubscriptions[0], function(err, subscription){
	      	cb(err, subscription);
	      });
	    });
	}
395787
function deleteTeamPolicies (params, cb) {
      let promise = null
      if (typeof cb !== 'function') [promise, cb] = asyncify()

      const { id, organizationId } = params

      Joi.validate({ id, organizationId }, validationRules.deleteTeamPolicies, function (err) {
        if (err) return cb(Boom.badRequest(err))

        clearTeamPolicies({ teamId: id, client: db }, (err, res) => {
          if (err) return cb(err)
          teamOps.readTeam({ id, organizationId }, cb)
        })
      })

      return promise
    }
898437
public function deleteAccount(IdentityToolkit_IdentitytoolkitRelyingpartyDeleteAccountRequest $postBody, $optParams = array())
  {
    $params = array('postBody' => $postBody);
    $params = array_merge($params, $optParams);
    return $this->call('deleteAccount', array($params), "IdentityToolkit_DeleteAccountResponse");
  }
69834
@Override
	public Later<Boolean> delete(String object) {
		this.checkForBatchExecution();
		
		// Something is fucked up with java's ability to perform DELETE.  FB's servers always return
		// 400 Bad Request even though the code is correct.  We will switch all deletes to posts.
		//GraphRequest<Boolean> req = new GraphRequest<Boolean>(object, HttpMethod.DELETE, mapper.getTypeFactory().constructType(Boolean.class), new Param[0]);

		GraphRequest<Boolean> req =
			new GraphRequest<Boolean>(object, HttpMethod.POST, new Param[] { new Param("method", "DELETE") }, this.mapper,
				this.<Boolean>createMappingChain(mapper.getTypeFactory().constructType(Boolean.class)));
		
		this.graphRequests.add(req);
		return req;
	}
1009408
function disconnectBody() {
        var key;
        self.loggingOut = true;
        offersPending = {};
        acceptancePending = {};
        self.disconnecting = true;
        closedChannel = self.webSocket;

        if( stillAliveTimer ) {
           clearTimeout(stillAliveTimer);
           stillAliveTimer = null;
        }

        if (self.webSocketConnected) {
            if (!preallocatedSocketIo) {
                self.webSocket.close();
            }
            self.webSocketConnected = false;
        }
        self.hangupAll();
        if (roomOccupantListener) {
            for (key in lastLoggedInList) {
                if (lastLoggedInList.hasOwnProperty(key)) {
                    roomOccupantListener(key, {}, false);
                }
            }
        }
        lastLoggedInList = {};
        self.emitEvent("roomOccupant", {});
        self.roomData = {};
        self.roomJoin = {};
        self.loggingOut = false;
        self.myEasyrtcid = null;
        self.disconnecting = false;
        oldConfig = {};
    }
620316
function (opts, cb) {
            var self = this;
            cb = cb || function () {
                };
            opts = opts || {};
            var url = this._getlisturi(opts);
            this.client.delete({
                uri: url
            }, cb);
        }
644082
function destroy(req, res, next) {
  db.tags.del(req.params.tag, function(err) {
    if(err) { return next(err); }
    res.json(null);
    signals.emit('tag:destroy', req.params.tag);
  });
}
802869
def database_remove_tags(object_id, input_params={}, always_retry=True, **kwargs):
    
    return DXHTTPRequest('/%s/removeTags' % object_id, input_params, always_retry=always_retry, **kwargs)
1131483
function destroy(req, res, next) {
  db.posts.del(req.params.post, function(err) {
    if(err) { return next(err); }
    res.json(null);
    signals.emit('post:destroy', req.params.post);
  });
}