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