Excluir dados do usuário

Firebase
Made by Firebase

Remove os dados com chaves em um userId do Cloud Firestore, Realtime Database e/ou Cloud Storage quando o usuário exclui a conta dele.

Como esta extensão funciona

Use this extension to automatically delete a user's data if the user is deleted from your authenticated users.

You can configure this extension to delete user data from any or all of the following: Cloud Firestore, Realtime Database, or Cloud Storage. Each trigger of the extension to delete data is keyed to the user's UserId.

Note: To use this extension, you need to manage your users with Firebase Authentication.

This extension is useful in respecting user privacy and fulfilling compliance requirements. However, using this extension does not guarantee compliance with government and industry regulations.

Additional setup

Depending on where you'd like to delete user data from, make sure that you've set up Cloud Firestore, Realtime Database, or Cloud Storage in your Firebase project before installing this extension.

Also, make sure that you've set up Firebase Authentication to manage your users.

Billing

To install an extension, your project must be on the Blaze (pay as you go) plan

  • You will be charged a small amount (typically around $0.01/month) for the Firebase resources required by this extension (even if it is not used).
  • This extension uses other Firebase and Google Cloud Platform services, which have associated charges if you exceed the service’s free tier:
  • Cloud Firestore
  • Firebase Realtime Database
  • Cloud Storage
  • Cloud Functions (Node.js 10+ runtime. See FAQs)

Como instalar a extensão

Como usar o Console do Firebase

Para instalar e gerenciar extensões, use o Console do Firebase.

Instalar usando o console

Como usar a Firebase CLI

Para instalar e gerenciar extensões, também é possível usar a Firebase CLI:

Etapa 1: execute o comando npm (em inglês) a seguir para instalar a CLI ou atualizá-la para a versão mais recente.

npm install -g firebase-tools
Não está funcionando? Consulte a referência da Firebase CLI ou altere suas permissões do npm (em inglês).

Etapa 2: execute o comando a seguir para instalar a extensão.

firebase ext:install delete-user-data --project=projectId_or_alias
Compatível com
Cloud Firestore Realtime Database Cloud Storage
Licença
Apache-2.0
Versão
0.1.6