diff --git a/models/repo.go b/models/repo.go index 59c7559423..10105d3071 100644 --- a/models/repo.go +++ b/models/repo.go @@ -1791,6 +1791,7 @@ func DeleteRepository(doer *User, uid, repoID int64) error { &HookTask{RepoID: repoID}, &Notification{RepoID: repoID}, &CommitStatus{RepoID: repoID}, + &RepoIndexerStatus{RepoID: repoID}, ); err != nil { return fmt.Errorf("deleteBeans: %v", err) }