##// END OF EJS Templates
merged new-ui into default
merged new-ui into default

File last commit:

r3693:f470fd2e new-ui
r3779:c69b10da merge default
Show More
repo-admin-tasks.rst
24 lines | 680 B | text/x-rst | RstLexer

Common Admin Tasks for Repositories

In case of attached forks or pull-requests repositories should be archived. Here is how to force delete a repository and remove all dependent objects

# starts the ishell interactive prompt
$ rccontrol ishell enterprise-1
In [4]: from rhodecode.model.repo import RepoModel
In [3]: repo = Repository.get_by_repo_name('test_repos/repo_with_prs')
In [5]: RepoModel().delete(repo, forks='detach', pull_requests='delete')
In [6]: Session().commit()