8000 How do you delete multiple files? · Issue #47 · edgestorejs/edgestore · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
How do you delete multiple files? #47
Open
@Arslan-Soomro

Description

@Arslan-Soomro

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0