Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Purge all the local media content that does not link to any source #9880

Closed
Narakuku opened this issue Apr 25, 2021 · 4 comments
Closed

Purge all the local media content that does not link to any source #9880

Narakuku opened this issue Apr 25, 2021 · 4 comments

Comments

@Narakuku
Copy link

Description:

I found out that any picture/media that was removed in the chat history (Element) still exists in the "/data/media_store", and the files are no longer needed anymore but consumes a lot of disk space.

So is there any way to clean all the local content that does not link to any chat room or history?

I'm aware of there is a media_admin_api, but that will also remove all the media that is still used by chat history, point is I don't want to jeopardize any history but only remove the files that are not needed.

@dklimpel
Copy link
Contributor

In my opinion is such API not possible. The messages are encrypted and the server does not know which files are used or not.

@Narakuku
Copy link
Author

The question is, why not remove the actual file together when deleting the pic from the chat history?

@dklimpel
Copy link
Contributor

The question is, why not remove the actual file together when deleting the pic from the chat history?

This is a duplicate of #1263 and #8638

@clokep
Copy link
Member

clokep commented Apr 27, 2021

Closing in favor of #1263.

@clokep clokep closed this as completed Apr 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants