How to delete user in Bitbucket using Command Line Interface (CLI)
This article explains how to delete a user in Bitbucket using Command Line Interface (CLI).
Instructions
Use the removeUser action to delete a user from Bitbucket instance. As an example, the following command deletes a testuser:
--action removeUser --userId "testuser"
In the 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.