summaryrefslogtreecommitdiff
path: root/doc/raketasks/cleanup.md
blob: 4b3b6d71a75b02bf76441e45304dae665cde9d01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Cleanup

## Remove garbage from filesystem. Important! Data loss!

Remove namespaces(dirs) from `/home/git/repositories` if they don't exist in GitLab database.

```
bundle exec rake gitlab:cleanup:dirs RAILS_ENV=production
```

Remove repositories (global only for now) from `/home/git/repositories` if they don't exist in GitLab database.

```
bundle exec rake gitlab:cleanup:repos RAILS_ENV=production
```