the documentation is a little bit old and I can't find any useful information.
I been trying this with no result (I'm using Reactjs):
import { getStorage } from 'firebase/storage';
import { initializeApp } from 'firebase/app'
const firebaseConfig = initializeApp({
apiKey: '### FIREBASE API KEY ###',
authDomain: '### FIREBASE AUTH DOMAIN ###',
projectId: '### CLOUD FIRESTORE PROJECT ID ###'
...etc...
});
const store = getStorage(firebaseConfig)
const storeRef = ref(store, `post/${id}`)
await deleteObject(storeRef)
the folder structure is: /post/${id}/...files...