0

I'm trying to delete object from aws s3 via key

key = "vocs_direct%25252F2021-09-14%25252Fd4c494cc-48a5-4fbd-b6ea-712a8d0b8c55.mp3"
AWS_S3_BUCKET.object(key).delete

and I get a succesful response

[Aws::S3::Client 204 0.231299 0 retries] delete_object(bucket:"voctag-dev-jonas",key:"vocs_direct/2021-09-14/d4c494cc-48a5-4fbd-b6ea-712a8d0b8c55.mp3") 

but the thing is the record is still there. I can access it via url, or try deleting again with same response. Is there anything I am missing?

1 Answer 1

0

Okay, after tinkering I've found the issue In my database slashes are enconded as %252F but in aws they are encoded %2F So, since keys were different, it could not delete the record!

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.