diff --git a/progit/repo.py b/progit/repo.py index 1887500..b6fd6f7 100644 --- a/progit/repo.py +++ b/progit/repo.py @@ -482,6 +482,12 @@ def delete_repo(repo, username=None): 403, 'You are not allowed to change the settings for this project') + for issue in repo.issues: + for comment in issue.comments: + SESSION.delete(comment) + SESSION.delete(issue) + for request in repo.requests: + SESSION.delete(request) SESSION.delete(repo) try: