Description
I have been using edgestore, and I like it a lot. But I couldn't find how to delete multiple files in a single go, maybe by using filtering with metadata or path. My use case is I store my user's data in this way {userId}/{file}
, and when the user closes their account or I want to manually delete them from the system, I first want to delete all their files and then mark them closed in the database so doing something like es.userFiles.delete({ path: { userId: 923udasdiasd9 } })
and it deletes all the files. I am also okay If this could be done with the backend client. If there is no official way to do It I will have to create a wrapper that first gets all the files of user by filtering from path and then deleting them one by one using the url. Would love to know if there is an official way to do it.