GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Cloud Storage Delete all files with prefix · Issue #680 · googleapis/google-cloud-node

Cloud Storage Delete all files with prefix #680

New issue
Copy link
New issue
Copy link
Closed
#698
Closed
Cloud Storage Delete all files with prefix#680
#698
Copy link
Assignees
stephenplusplus
Labels
api: storageIssues related to the Cloud Storage API.type: questionRequest for information or clarification. Not an issue.

Description

@javorosas
javorosas
opened on Jun 19, 2015
Issue body actions

It would be nice if there was a bulk delete for files that satisfy a query in a bucket. Something like:

myBucket.deleteFiles({ prefix: 'myDirectory/' }, callback);

Activity

Next
  1. jgeewax commented on Jun 19, 2015

    @jgeewax
    jgeewax
    on Jun 19, 2015
    Contributor
    More actions

    Since there's no API call for this, it'd really be a shortcut for...

    bucket.getFiles({ prefix: 'directory/'}, function(err, files, ...) {
      for (var i in files) {
        files[i].delete();
      }
    });

    which could be super misleading about what's actually happening, and might fail half-way through (it wouldn't be an atomic operation). That said, I'll leave this open for discussion...

    /cc @stephenplusplus : This (to me) feels like the whole "delete bucket even if it isn't empty" thing where people are going to do it, so we might as well help them do it right (and then if we add an API call to do such a thing, we can swap it for that under the hood without anyone caring).

    /cc @Capstan : Any chance we're going to add a long-running operation to delete multiple files in a single request using the same query parameters we provide to Objects:list?

  2. jgeewax
    added
    type: questionRequest for information or clarification. Not an issue.
    api: storageIssues related to the Cloud Storage API.
    on Jun 19, 2015
  3. stephenplusplus commented on Jun 22, 2015

    @stephenplusplus
    stephenplusplus
    on Jun 22, 2015
    Contributor
    More actions

    I think this is a good idea. Will PR.

  4. stephenplusplus
    self-assigned this
    on Jun 22, 2015
  5. Capstan commented on Jun 22, 2015

    @Capstan
    Capstan
    on Jun 22, 2015
    More actions

    @jgeewax Support for additional long-running operations is on our roadmap, yes. As for what the method looks like is still undecided. It may not look like list objects at all. It may cleave more to lifecycle management instead. If you have some specific use cases / design goals in mind, it'd be helpful. (e.g., do you care about people adding objects after the operation starts being deleted or not?)

  6. stephenplusplus
    closed this as completedin #698on Jul 9, 2015
  7. sofisl
    added a commit that references this issue on Jan 10, 2023

    build: update copyright year to 2022 (#680)

    1bb6449
  8. sofisl
    added 2 commits that reference this issue on Jan 24, 2023

    chore: generate GAPIC metadata JSON file (#680)

    db084d1

    chore: generate GAPIC metadata JSON file (#680)

    a49b15b
  9. sofisl
    added 5 commits that reference this issue on Jan 27, 2026

    chore(node): fix kokoro build path for cloud-rad (#680)

    88a4328

    chore(node): fix kokoro build path for cloud-rad (#680)

    0a90c16

    chore(node): fix kokoro build path for cloud-rad (#680)

    3ff6f3f

    chore(node): fix kokoro build path for cloud-rad (#680)

    c9d0479

    chore(node): fix kokoro build path for cloud-rad (#680)

    1b4eb3b
  10. 1 remaining item

  11. sofisl
    added 4 commits that reference this issue on Feb 3, 2026

    fix: add types for hasDrift and seasonalPeriods (#680)

    0ddabde

    migrate code from googleapis/cloud-profiler-nodejs (#7087)

    288deb4

    build: have Kokoro grab service account credentials from secret that …

    cbbb4e1

    chore(deps): update dependency mocha to v8 (#680)

    81ee214
  12. sofisl
    added a commit that references this issue on Feb 17, 2026

    chore(deps): update dependency mocha to v8 (#680)

    d1e3eb6
  13. sofisl
    added 3 commits that reference this issue on Feb 24, 2026

    feat: Support host, ssl and FIRESTORE_EMULATOR_HOST for endpoint conf…

    e946cb7

    update to .nycrc with --all enabled (#680)

    f504967

    fix(deps): update dependency yargs to v14 (#680)

    d9d40d0
  14. GautamSharda
    added a commit that references this issue on Mar 12, 2026

    feat: Customize retry implementation (#680)

    455be01
  15. sofisl
    added a commit that references this issue on Mar 17, 2026

    feat: `fetch`-Compatible API (#680)

    a7d82a2
  16. thiyaguk09
    added a commit that references this issue on Mar 18, 2026

    update to .nycrc with --all enabled (googleapis#680)

    72aafba
  17. GautamSharda
    added 2 commits that reference this issue on Mar 23, 2026

    chore(deps): update dependency @types/sinon to v9 (#680)

    f89b4b0

    chore(deps): update dependency @types/sinon to v9 (#680)

    476a913
  18. shivanee-p
    added a commit that references this issue on Mar 27, 2026

    chore(deps): update dependency @types/sinon to v9 (#680)

    ed98c1b
  19. thiyaguk09
    added a commit that references this issue on May 5, 2026

    chore(deps): update dependency @types/sinon to v9 (googleapis#680)

    dfc4178
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @stephenplusplus
    stephenplusplus

Labels

api: storageIssues related to the Cloud Storage API.type: questionRequest for information or clarification. Not an issue.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.