
Hello Beautiful People,
I'm working on a feature where I need to execute certain actions in a function when a user account is deleted. This function would ideally be triggered by the account deletion event in Appwrite.
My key question is: Does Appwrite pass any specific data (like userID
or other identifiers) to the function when it is triggered by an account deletion event? If so, how can I capture and utilize this data within my function?
I'm specifically looking to understand:
- The nature of the data passed to the function on such an event.
- The method or syntax for accessing this data within the function. Any guidance, code snippets, or pointers to relevant documentation would be immensely helpful.
Thank you for your assistance!

Got the solution. The users id can be accessed through the request object passed by the event through JSON.stringify(req.body)

yes, the body always contains the payload of the event. so, if you have a function that triggers on document update, the body would be the updated document.
In addition, the headers have some additional info too, such as who triggered the function: https://appwrite.io/docs/products/functions/development#headers
Recommended threads
- createJWT: The requested route was not f...
Hi team, I'm currently working on the SDK for Node.js using Appwrite to build an API for my server. I am following the documentation for the account/jwt - http...
- Show execution status 500 unable to set ...
I want to set the labels at the time user signup to my application , all things work , users data save in auth, updateprefs set , a verification email sent , bu...
- Using a local package inside of a cloud ...
Hey all I am trying to understand if what I want is possible or I am looking at it wrong. I am trying to use the a local package inside of my Dart cloud functi...
