aboutsummaryrefslogtreecommitdiff
path: root/models/repo.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/repo.go')
-rw-r--r--models/repo.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/models/repo.go b/models/repo.go
index d20e5f81d..b2f5d5cdc 100644
--- a/models/repo.go
+++ b/models/repo.go
@@ -957,6 +957,11 @@ func DeleteRepository(doer *user_model.User, uid, repoID int64) error {
admin_model.RemoveAllWithNotice(db.DefaultContext, "Delete repository wiki", repo.WikiPath())
}
+ // Remove projectbase files
+ if repo.HasProjectBase() {
+ admin_model.RemoveAllWithNotice(db.DefaultContext, "Delete repository projectbase", repo.ProjectBasePath())
+ }
+
// Remove archives
for _, archive := range archivePaths {
admin_model.RemoveStorageWithNotice(db.DefaultContext, storage.RepoArchives, "Delete repo archive file", archive)