2
Storage: remove without file extension
Source: supabase/supabase#2766 · opened by @dommarr
Hi,
One suggestion - it would be helpful if we could delete/remove a file from storage with only the path and filename, no file extension. Knowing the path and filename should be enough to identify which asset should be deleted.
For example, I have images in different formats (.png, .jpg, etc.). I have to separately list the images in the bucket to identify the file extension and then perform the delete. Also, is there a way to limit the list by the filename? Currently I have to list all assets (hundreds) and then filter the array to find the specific asset and its mimetype.
This feels like an unnecessary two step process. My two cents.
Thanks!
One suggestion - it would be helpful if we could delete/remove a file from storage with only the path and filename, no file extension. Knowing the path and filename should be enough to identify which asset should be deleted.
For example, I have images in different formats (.png, .jpg, etc.). I have to separately list the images in the bucket to identify the file extension and then perform the delete. Also, is there a way to limit the list by the filename? Currently I have to list all assets (hundreds) and then filter the array to find the specific asset and its mimetype.
This feels like an unnecessary two step process. My two cents.
Thanks!
No pledges yet. Be the first to back this.
Comments
Similar requests
Add Storage Adapter For Chrome.Local.Storage Api
3 votes · 0 comments
Feature Request: Native Storage File Deletion Trigger on Row Delete
7 votes · 0 comments
Add Storage Backups in Sync with Database Backups
4 votes · 0 comments
# Proposal: Virtual Storage Columns (Seamless DB-to-Storage Mapping)
1 vote · 0 comments
Storage: Upload to Bucket from Url
6 votes · 0 comments
No comments yet.