Renders this local FirebaseApp unusable and frees the resources of all associated services (though it does *not* clean up any backend resources). When running the SDK locally, this method must be called to ensure graceful termination of the process.
Renders this local FirebaseApp unusable and frees the resources of all associated services (though it does *not* clean up any backend resources). When running the SDK locally, this method must be called to ensure graceful termination of the process.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-04-16 UTC."],[],[],null,["# app.App interface\n\nA Firebase app holds the initialization information for a collection of services.\n\nDo not call this constructor directly. Instead, use [initializeApp()](./firebase-admin.app.md#initializeapp_2848fbd) to create an app.\n\n**Signature:** \n\n interface App extends AppCore \n\n**Extends:** AppCore\n\nMethods\n-------\n\n| Method | Description |\n|------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [appCheck()](./firebase-admin.app_n.app.md#appappappcheck) | |\n| [auth()](./firebase-admin.app_n.app.md#appappauth) | |\n| [database(url)](./firebase-admin.app_n.app.md#appappdatabase) | |\n| [delete()](./firebase-admin.app_n.app.md#appappdelete) | Renders this local `FirebaseApp` unusable and frees the resources of all associated services (though it does \\*not\\* clean up any backend resources). When running the SDK locally, this method must be called to ensure graceful termination of the process. |\n| [firestore()](./firebase-admin.app_n.app.md#appappfirestore) | |\n| [installations()](./firebase-admin.app_n.app.md#appappinstallations) | |\n| [instanceId()](./firebase-admin.app_n.app.md#appappinstanceid) | |\n| [machineLearning()](./firebase-admin.app_n.app.md#appappmachinelearning) | |\n| [messaging()](./firebase-admin.app_n.app.md#appappmessaging) | |\n| [projectManagement()](./firebase-admin.app_n.app.md#appappprojectmanagement) | |\n| [remoteConfig()](./firebase-admin.app_n.app.md#appappremoteconfig) | |\n| [securityRules()](./firebase-admin.app_n.app.md#appappsecurityrules) | |\n| [storage()](./firebase-admin.app_n.app.md#appappstorage) | |\n\napp.App.appCheck()\n------------------\n\n**Signature:** \n\n appCheck(): appCheck.AppCheck;\n\n**Returns:**\n\n[appCheck.AppCheck](./firebase-admin.appcheck_n.md#appcheckappcheck)\n\napp.App.auth()\n--------------\n\n**Signature:** \n\n auth(): auth.Auth;\n\n**Returns:**\n\n[auth.Auth](./firebase-admin.auth_n.md#authauth)\n\napp.App.database()\n------------------\n\n**Signature:** \n\n database(url?: string): database.Database;\n\n### Parameters\n\n| Parameter | Type | Description |\n|-----------|--------|-------------|\n| url | string | |\n\n**Returns:**\n\n[database.Database](./firebase-admin.database_n.md#databasedatabase)\n\napp.App.delete()\n----------------\n\nRenders this local `FirebaseApp` unusable and frees the resources of all associated services (though it does \\*not\\* clean up any backend resources). When running the SDK locally, this method must be called to ensure graceful termination of the process.\n\n**Signature:** \n\n delete(): Promise\u003cvoid\u003e;\n\n**Returns:**\n\nPromise\\\u003cvoid\\\u003e\n\n### Example\n\n app.delete()\n .then(function() {\n console.log(\"App deleted successfully\");\n })\n .catch(function(error) {\n console.log(\"Error deleting app:\", error);\n });\n\napp.App.firestore()\n-------------------\n\n**Signature:** \n\n firestore(): firestore.Firestore;\n\n**Returns:**\n\nfirestore.Firestore\n\napp.App.installations()\n-----------------------\n\n**Signature:** \n\n installations(): installations.Installations;\n\n**Returns:**\n\n[installations.Installations](./firebase-admin.installations_n.md#installationsinstallations)\n\napp.App.instanceId()\n--------------------\n\n\u003e | **Warning:** This API is now obsolete.\n\u003e\n\u003e Use [Installations](./firebase-admin.installations.installations.md#installations_class) instead.\n\n**Signature:** \n\n instanceId(): instanceId.InstanceId;\n\n**Returns:**\n\n[instanceId.InstanceId](./firebase-admin.instanceid_n.md#instanceidinstanceid)\n\napp.App.machineLearning()\n-------------------------\n\n**Signature:** \n\n machineLearning(): machineLearning.MachineLearning;\n\n**Returns:**\n\n[machineLearning.MachineLearning](./firebase-admin.machinelearning_n.md#machinelearningmachinelearning)\n\napp.App.messaging()\n-------------------\n\n**Signature:** \n\n messaging(): messaging.Messaging;\n\n**Returns:**\n\n[messaging.Messaging](./firebase-admin.messaging_n.md#messagingmessaging)\n\napp.App.projectManagement()\n---------------------------\n\n**Signature:** \n\n projectManagement(): projectManagement.ProjectManagement;\n\n**Returns:**\n\n[projectManagement.ProjectManagement](./firebase-admin.projectmanagement_n.md#projectmanagementprojectmanagement)\n\napp.App.remoteConfig()\n----------------------\n\n**Signature:** \n\n remoteConfig(): remoteConfig.RemoteConfig;\n\n**Returns:**\n\n[remoteConfig.RemoteConfig](./firebase-admin.remoteconfig_n.md#remoteconfigremoteconfig)\n\napp.App.securityRules()\n-----------------------\n\n**Signature:** \n\n securityRules(): securityRules.SecurityRules;\n\n**Returns:**\n\n[securityRules.SecurityRules](./firebase-admin.securityrules_n.md#securityrulessecurityrules)\n\napp.App.storage()\n-----------------\n\n**Signature:** \n\n storage(): storage.Storage;\n\n**Returns:**\n\n[storage.Storage](./firebase-admin.storage_n.md#storagestorage)"]]