示例#1
0
文件: host.go 项目: bjori/evergreen
func (self *Host) Remove() error {
	return db.Remove(
		Collection,
		bson.M{
			IdKey: self.Id,
		},
	)
}
示例#2
0
文件: db.go 项目: sr527/evergreen
// Remove deletes the task of the given id from the database
func Remove(id string) error {
	return db.Remove(
		Collection,
		bson.M{IdKey: id},
	)
}
示例#3
0
// Remove removes one distro.
func Remove(id string) error {
	return db.Remove(Collection, bson.D{{IdKey, id}})
}