aboutsummaryrefslogtreecommitdiffstats
path: root/entities/bug/bug_actions.go
diff options
context:
space:
mode:
Diffstat (limited to 'entities/bug/bug_actions.go')
-rw-r--r--entities/bug/bug_actions.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/entities/bug/bug_actions.go b/entities/bug/bug_actions.go
index 198e4ed0..651d24dc 100644
--- a/entities/bug/bug_actions.go
+++ b/entities/bug/bug_actions.go
@@ -37,3 +37,9 @@ func MergeAll(repo repository.ClockedRepo, resolvers entity.Resolvers, remote st
func Remove(repo repository.ClockedRepo, id entity.Id) error {
return dag.Remove(def, repo, id)
}
+
+// RemoveAll will remove all local bugs.
+// RemoveAll is idempotent.
+func RemoveAll(repo repository.ClockedRepo) error {
+ return dag.RemoveAll(def, repo)
+}