Is there any API that can delete the user and all closed tickets?
Currently, I am not able to do it in a single API call.
Steps:
1. Search User from email and find the ZD ID in response
https://developer.zendesk.com/api-reference/ticketing/users/users/#search-users
2. Using that ZD ID I delete and then permanently delete the user
https://developer.zendesk.com/api-reference/ticketing/users/users/#delete-user
https://developer.zendesk.com/api-reference/ticketing/users/users/#permanently-delete-user
3. After permanent deletion when I fetch the tickets of this deleted user from API I see the tickets in response and on UI as well
https://developer.zendesk.com/api-reference/ticketing/tickets/tickets/#show-ticket
What I need is a single API that can do this for me.
I am doing this when the customer cancels his account and 90 days has passed, to follow the GDPR policies.
Because you need to delete the tickets and user separately, this will be a multi-step process. But to simplify the process, I recommend deleting the tickets associated with the user first. Then permanently delete the user.