mailcow-dockerized-docs/docs/debug-rm_volumes.md

18 Zeilen
900 B
Markdown

2019-08-16 13:40:02 +02:00
You may want to remove a set of persistent data to resolve a conflict or to start over.
2020-12-23 21:57:09 +01:00
`mailcowdockerized` can vary and depends on your compose project name (if it's unchanged, `mailcowdockerized` is the correct value). If you are unsure about volume names, run `docker volume ls` for a full list.
2019-08-16 13:40:02 +02:00
Delete a single volume:
2017-05-06 18:24:40 +02:00
```
docker volume rm mailcowdockerized_${VOLUME_NAME}
```
- Remove volume `mysql-vol-1` to remove all MySQL data.
- Remove volume `redis-vol-1` to remove all Redis data.
- Remove volume `vmail-vol-1` to remove all contents of `/var/vmail` mounted to `dovecot-mailcow`.
- Remove volume `rspamd-vol-1` to remove all Rspamd data.
- Remove volume `crypt-vol-1` to remove all crypto data. This will render **all mails** unreadable.
2017-05-06 18:24:40 +02:00
2019-08-16 13:40:02 +02:00
Alternatively, running `docker-compose down -v` will **destroy all mailcow: dockerized volumes** and delete any related containers and networks.