Add note on purging local media
parent
28e2fbdbf3
commit
b85768da1c
|
@ -3,6 +3,12 @@ List of useful tools and scripts for maintenance Synapse database:
|
||||||
## [Purge Remote Media API](https://github.com/matrix-org/synapse/blob/master/docs/admin_api/purge_remote_media.rst)
|
## [Purge Remote Media API](https://github.com/matrix-org/synapse/blob/master/docs/admin_api/purge_remote_media.rst)
|
||||||
The purge remote media API allows server admins to purge old cached remote media.
|
The purge remote media API allows server admins to purge old cached remote media.
|
||||||
|
|
||||||
|
#### Purge local media
|
||||||
|
There is no purge API for local media because you may be the only one with a copy. If you are sure you want to delete local media you could use something like the following to delete media that hasn't been accessed in a while.
|
||||||
|
|
||||||
|
`find /path/to/synapse/media_store -atime +365 -delete`
|
||||||
|
This will delete media that hasn't been accessed in 365 days.
|
||||||
|
|
||||||
## [Purge History API](https://github.com/matrix-org/synapse/blob/master/docs/admin_api/purge_history_api.rst)
|
## [Purge History API](https://github.com/matrix-org/synapse/blob/master/docs/admin_api/purge_history_api.rst)
|
||||||
The purge history API allows server admins to purge historic events from their database, reclaiming disk space.
|
The purge history API allows server admins to purge historic events from their database, reclaiming disk space.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue