// Remove all deletes all tasks with a given buildId func RemoveAllWithBuild(buildId string) error { return db.RemoveAll( Collection, bson.M{BuildIdKey: buildId}) }
func RemoveAllTasks(query interface{}) error { return db.RemoveAll( TasksCollection, query, ) }