P
P
partyzanx2020-09-09 01:28:03
Amazon Web Services
partyzanx, 2020-09-09 01:28:03

How to delete AWS S3 files starting with a certain name?

The user's photos are uploaded to the server, the photo names begin with his id.
When he uploads a new avatar, it is necessary to remove all avatars from the repository whose names begin with his id.
I implemented this by saving the name of the name of the previous ava.
But I would like to play it safe and delete all his photos I
use node.js

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Shumov, 2020-09-09
@partyzanx

In this case, you can stop doing garbage and fill in the avatar at the same address as the old one

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question