Links

Delete User

Using this action, you can delete the user account created using the Firebase authentication. Additionally, you can also set up to delete all data associated with that user.
Deleting user

Prerequisites

Before you add this action, make sure you have added the Firebase Authentication and have some user accounts created.

Adding Delete User action

Follow the steps below to add this action to any widget.
  1. 1.
    Select the Widget (e.g., Container, Button, etc.) on which you want to add the action.
  2. 2.
    Select Actions from the properties panel (the right menu), If it's the first action, click + Add Action button. Otherwise, click the "+" button below the previous action tile (inside Action Flow Editor) and select Add Action.
  3. 3.
    As a best practice, it's recommended to log out the user before proceeding.
  4. 4.
    Search and select the Delete User (under Backend/Database > Firebase Authentication) action.
Adding Delete User action
  1. 5.
    To delete all records and data associated with that user's account:
    1. 1.
      Navigate to the Firestore (from the Navigation Menu) > switch to Firestore Settings > Firestore Rules.
    2. 2.
      Identify the collection from which you want to delete the user's data and ensure the Delete rule is set to Tagged Users. See how to setup a rule.
    3. 3.
      Tick the (
      ) checkbox.
    4. 4.
      See the Delete User References section and click on Preview to verify the generated rule.
    5. 5.
      Click the Deploy button.
Setting up to delete user's data