I want to use a cloud function background trigger, so when I delete a user data in Firestore, I want to also delete their profile picture in the Firebase storage.
the userID is used as the image name of that picture. and the image is located inside the profilepicture folder
export const removeProfilePictureWhenDeletingUserData = functions.firestore
.document('userss/{userID}')
.onDelete((snap, context) => {
const userID = context.params.userID
// how to delete the image in here?
});
I have tried to read the documentation, but I am confused about how to implement that method :(. really need your help. thanks in advance

