Beispiel #1
0
func (self *Host) Remove() error {
	return db.Remove(
		Collection,
		bson.M{
			IdKey: self.Id,
		},
	)
}
Beispiel #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},
	)
}
Beispiel #3
0
// Remove removes one distro.
func Remove(id string) error {
	return db.Remove(Collection, bson.D{{IdKey, id}})
}