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