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/app > deleteApp

deleteApp() function

Renders this app unusable and frees the resources of all associated services.

Signature:

export declare function deleteApp(app: FirebaseApp): Promise<void>;

Parameters

Parameter Type Description
app FirebaseApp

Returns:

Promise<void>

Example

deleteApp(app)
  .then(function() {
    console.log("App deleted successfully");
  })
  .catch(function(error) {
    console.log("Error deleting app:", error);
  });