Commit 029e863a authored by Shaun McCann's avatar Shaun McCann

Merge branch '36798-doc-update-how-to-reset-a-wiki-project-from-a-rails-console' into 'master'

Resolve "doc update reset a wiki project via a Rails console"

Closes #36798

See merge request gitlab-org/gitlab!20428
parents 4d470771 ab73ba99
......@@ -258,6 +258,22 @@ Project.find_each do |project|
end
```
## Wikis
### Recreate
A Projects Wiki can be recreated by
**Note:** This is a destructive operation, the Wiki will be empty
```ruby
p = Project.find_by_full_path('<username-or-group>/<project-name>') ### enter your projects path
GitlabShellWorker.perform_in(0, :remove_repository, p.repository_storage, p.wiki.disk_path) ### deletes the wiki project from the filesystem
p.create_wiki ### creates the wiki project on the filesystem
```
## Imports / Exports
```ruby
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment