This API is used to get all events of a particular user while deleting the user's profile.
This API is used when the user clicks on Delete Account from the Edit Profile page from the Profile menu.
To use this API, the user needs to pass body parameters with user details and authorization token in API in the header.
An authorization token will be generated when the user login to the system.
This API returns the list of event names of all events for a particular user
Here are the possible error messages, which will return if any conditions fail or the required data is missing for processing
The email or password doesn't match.
The superadmin account cannot be deleted.
The user is not authorized to view the resource.