enable from.remove() to delete folders
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- typescript
- Domain
- backend-api-design
Research direction
Start at the storage client's .from().remove() entry point and review how remove() currently handles object paths. Compare the requested force behavior with existing list() and remove() flows; done means folder paths, including non-empty and empty folders, can be removed through the API with coverage for both cases.
Written by the indexing model from the issue text.
Description
Feature request - delete folders
Is your feature request related to a problem? Please describe.
With supabase storage, folders are deleted automatically when their contents are deleted, but there's no way to delete a whole folder at once, and there's no (clean) way to delete empty folders.
Describe the solution you'd like
I would like for this to work:
const { data, error } = await supabase.storage
.from('bucket')
.remove(['path/to/folder'], {
force: true, // required if folder isnt empty
});
Describe alternatives you've considered
For 'empty folders' that were created in the supabase web app, they can apparently be deleted like this:
const { data, error } = await supabase.storage
.from('bucket')
.remove(['folder/.emptyFolderPlaceholder']);
^ but this is clunky, and you have to know that that placeholder file is there.
And for deleting a folder that has multiple contents, it can be done much more verbosely using .list() and .remove() , but this is a pain, especially if there are nested folders.
- Dominant language
- TypeScript
- Stars
- 1.3k
- Forks
- 307
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 44
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from supabase/storage
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
documentation
Difficulty 1/5 Under an hour Newbie friendliness 62/100
-
Difficulty 3/5 1-2 days Newbie friendliness 75/100
-
Difficulty 3/5 1-2 days Newbie friendliness 76/100
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
All issues in supabase/storage
Similar issues
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P3
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 76/100
-
code-quality refactoring
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
github/gh-aw-firewall#8816 ·
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
vercel/react-tweet#225 ·