mirror of https://github.com/zulip/zulip.git
docs: Update instructions for realm deletion to use management command.
This documentation was written in9ece4c9f51
, which predated the `./manage delete_realm` command added inbff503feb4
.
This commit is contained in:
parent
52b8a84219
commit
6969a6a92d
|
@ -410,24 +410,11 @@ and then once you're ready, you can email them to everyone using e.g.
|
|||
If you did a test import of a Zulip organization, you may want to
|
||||
delete the test import data from your Zulip server before doing a
|
||||
final import. You can **permanently delete** all data from a Zulip
|
||||
organization using the following procedure:
|
||||
|
||||
- Start a [Zulip management shell](management-commands.md#managepy-shell)
|
||||
- In the management shell, run the following commands, replacing `""`
|
||||
with the subdomain if [you are hosting the organization on a
|
||||
subdomain](multiple-organizations.md):
|
||||
|
||||
```python
|
||||
realm = Realm.objects.get(string_id="")
|
||||
realm.delete()
|
||||
```
|
||||
|
||||
The output contains details on the objects deleted from the database.
|
||||
|
||||
Now, exit the management shell and run this to clear Zulip's cache:
|
||||
organization by running (replacing `''` with the subdomain if [you are
|
||||
hosting the organization on a subdomain](multiple-organizations.md)):
|
||||
|
||||
```bash
|
||||
/home/zulip/deployments/current/scripts/setup/flush-memcached
|
||||
./manage.py delete_realm -r ''
|
||||
```
|
||||
|
||||
Assuming you're using the
|
||||
|
|
Loading…
Reference in New Issue