Back

How do I delete every document created by a user

  • 0
  • Flutter
  • Databases
  • Accounts
  • Users
  • Functions
dammy
15 Jul, 2023, 20:44

How do I auto delete every document created by a user whenever User Account is deleted

TL;DR
User wants to know how to delete all documents created by a specific user and have a field to save the user ID. They also want to know how to automatically delete the documents when the user account is deleted. A function needs to be used for this purpose.
D5
15 Jul, 2023, 20:46

You will need a function

D5
15 Jul, 2023, 20:47

And also have a field where you save the user ID when the document is created

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more