Skip to content

Commit 07493a4

Browse files
committed
Add RTDB flush method using platform SDK methods.
1 parent 79e8ecf commit 07493a4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

database/emulator-suite.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,10 @@ export async function onDocumentReady() {
1313
const db = myApp.database();
1414
// [END rtdb_emulator_connect]
1515
}
16+
17+
export async function flushRealtimeDatabase(anRTDBReference) {
18+
19+
//[START rtdb_emulator_flush]
20+
anRTDBReference.child("/").set(null);
21+
// [END rtdb_emulator_connect]
22+
}

0 commit comments

Comments
 (0)