##// END OF EJS Templates
docs: updated documentation structure
docs: updated documentation structure

File last commit:

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