This article explains how to delete a user in Bitbucket using Command Line Interface (CLI).
Instructions
Use action removeUser for deleting user from Bitbucket instance.
--action removeUser --userId "testuser"
In above CLI action,
--userId takes the username of the user in Bitbucket.
It is recommended to test this scenario in a non-production environment or run the action with the --simulate parameter to verify the behavior before deploying.