removeData method

Future<void> removeData(
  1. String nodePath
)

Deletes data at a specified node path in the database.

The nodePath specifies the path within the database where data should be removed. Prints "Data Deleted" upon successful deletion of data.

Implementation

Future<void> removeData(String nodePath) async {
  await database.ref(nodePath).remove();
}