Home > Mobile >  How can we delete database file from the users' devices?
How can we delete database file from the users' devices?

Time:12-25

I'm taking part in developing Android app, and I have a task to delete one useless corner. The problem is this corner has got its own database, and after deleting the file with this db was left on the users' devices. How can I delete it from there during the next release?

CodePudding user response:

For deleting data inside of firebase you can simply use

remove() or you can also delete by specifying null as the value for another write operation such as set() or update(). You can use this technique with update() to delete multiple children in a single API call.

CodePudding user response:

If you know the name of database table you may delete it by exeuting sql drop table if exists ${table_name}.

  • Related