The Firebase JS SDK is now in BETA!
This EAP site is no longer maintained. See the official Firebase Documentation site for the latest documentation and information about the Firebase JS SDK.

Home > @firebase/storage > deleteObject

deleteObject() function

Deletes the object at this location.

Signature:

export declare function deleteObject(ref: StorageReference): Promise<void>;

Parameters

Parameter Type Description
ref StorageReference StorageReference for object to delete.

Returns:

Promise<void>

A promise that resolves if the deletion succeeds.