func (self *Host) Remove() error { return db.Remove( Collection, bson.M{ IdKey: self.Id, }, ) }
// Remove deletes the task of the given id from the database func Remove(id string) error { return db.Remove( Collection, bson.M{IdKey: id}, ) }
// Remove removes one distro. func Remove(id string) error { return db.Remove(Collection, bson.D{{IdKey, id}}) }