docs(dendrite): delete the alias of an empty room

This commit is contained in:
2026-02-18 14:56:40 +01:00
parent 74669830b4
commit 6f014d1580

View File

@@ -0,0 +1,13 @@
# Dendrite Matrix Server
## Notes
### Delete the alias of an empty room
- Open an SQL shell in the postgres container: `sudo docker exec -it <postgres container id> psql -U dendrite dendrite`
- List the tables: `\dt`
- Take note of the aliases table name (it should be `roomserver_room_aliases`)
- Verify the alias exists: `SELECT * FROM roomserver_room_aliases WHERE alias = '#<alias>:<domain>';`
- This should return a row, if it doesn't check for any spelling mistakes
- Delete the entry from the table: `DELETE FROM roomserver_room_aliases WHERE alias = '#<alias>:<domain>';`
- This should return `DELETE 1`
- Exit the shell: `\q`