firebase / firebase/firebase-tools

delete files from storage

Open
#752 0 comments 0 reactions 0 assignees View on GitHub
polish type: feature request
Dominant language
TypeScript
Stars
4.5k
Forks
1.3k
Avg merge
1d 12h
Merged PRs (30d)
84

Description

It would be helpful to have a command in the CLI to delete files (or a set of files under a specific path). During development, I'd like to reset user and app generated data in both Firestore and Storage

The related firestore command is:
```
firebase firestore:delete -r -y items/subcollection
```

I would like a command like:

```
firebase storage:delete -r -y products/images
```

Workaround:
it looks like this is available in `gsutil`

To delete everything in the default storage bucket under `product/images`:
``
gsutil rm gs://$PROJECT_ID.appspot.com/product/images/*
``
docs: https://cloud.google.com/storage/docs/gsutil/commands/rm

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.