This out-of-the-box workflow automatically deletes a customer account when the customer submits an account deletion request. It helps you comply with privacy and data protection requirements by ensuring that customer data is removed in a timely and consistent way.

The workflow is triggered by the Account deletion request event.

Then use Action node - Delete account

A customer submits a request to delete their account
The workflow is triggered automatically and the account is removed from the system without any manual intervention.