Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
docs: Update instructions for realm deletion to use management command.
Alex Vandiver6969a6a92d7e
diff --git a/docs/production/export-and-import.md b/docs/production/export-and-import.mdindex 1c75053cbe4..4fe9f34ea42 100644--- a/docs/production/export-and-import.md+++ b/docs/production/export-and-import.md@@ -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 todelete the test import data from your Zulip server before doing afinal 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