diff --git a/lib/firebase-app.js b/lib/firebase-app.js index 7e48bb24..24ce0150 100644 --- a/lib/firebase-app.js +++ b/lib/firebase-app.js @@ -109,13 +109,15 @@ export default class FirebaseApp { * @return {Promise} */ delete() { - if (this._name === INTERNALS.STRINGS.DEFAULT_APP_NAME && this._nativeInitialized) { - return Promise.reject( - new Error('Unable to delete the default native firebase app instance.'), - ); - } - - return FirebaseCoreModule.deleteApp(this._name); + throw new Error(INTERNALS.STRINGS.ERROR_UNSUPPORTED_CLASS_METHOD('app', 'delete')); + // TODO only the ios sdk currently supports delete, add back in when android also supports it + // if (this._name === INTERNALS.STRINGS.DEFAULT_APP_NAME && this._nativeInitialized) { + // return Promise.reject( + // new Error('Unable to delete the default native firebase app instance.'), + // ); + // } + // + // return FirebaseCoreModule.deleteApp(this._name); }