##// END OF EJS Templates
styling: use sandboxed style for ipython so it doesn't affect style of application anymore.
styling: use sandboxed style for ipython so it doesn't affect style of application anymore.

File last commit:

r3693:f470fd2e new-ui
r3784:cc55d3ca 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()