Deleting images #1000
Replies: 1 comment
-
Having just encountered this myself, unless I am completely mistaken, it will not be easy with the current implementation of object storage functionality. Current functionality is either a simple fetch request (retrieving images) or a put request with a binary body (uploading images). I was looking for a way to list orphaned objects and delete them. ListObjectV2 only returns an XML response and DeleteObjects only accepts an XML request and even then, "A 200 OK response can contain valid or invalid XML." Instead of forcing the use of XML, the solution I went with was to use the AWS SDK and its various methods for interacting with S3-compatible storage. Otherwise, it seems you need to start messing with Ultimately I found it easier to replace the current object storage implementation with @aws-sdk/client-s3 and use aws-sdk-client-mock for mocking storage locally. |
Beta Was this translation helpful? Give feedback.
-
Hi!
... how do I delete images? Can't find anything for this in the code base or the documentation. Maybe this isn't necessary(?!), but then I really am pretty lost as to how the tigris/openimg optimization works!
I'm sorry if this is the wrong place for such a question.
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions