Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete Media on Media storage providers #16475

Open
matrixbot opened this issue Dec 21, 2023 · 0 comments
Open

Delete Media on Media storage providers #16475

matrixbot opened this issue Dec 21, 2023 · 0 comments

Comments

@matrixbot
Copy link
Collaborator

matrixbot commented Dec 21, 2023

This issue has been migrated from #16475.


Description:

Currently the implementation for the media_storage_providers is only able to upload and download - with options whether or not to store locally uploaded files and / or to store remote media (media cache), however we can only delete local media files.

When looking at the code, we only delete local files:

There are probably some questions which have to be answered first:

  • Should the deletion be optional? (e.g. option in config)
  • Would the implementation break existing storage providers?
  • Is this "feature" even something we want?

I am personally running a server with the synapse-s3-storage-provider and noticed relatively late, that it's basically append only, meaning the s3 storage will continuously grow without being able to delete old/unused media. (Related Github Issue matrix-org/synapse-s3-storage-provider#96)

I may or may not be able to contribute, I would need to setup a dev environment for that.

@matrixbot matrixbot changed the title Dummy issue Delete Media on Media storage providers Dec 22, 2023
@matrixbot matrixbot reopened this Dec 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant