---
title: "How to delete user in Bitbucket using Command Line Interface (CLI)"
canonical: "https://support.appfire.com/space/SUPPORT/89142723/How%20to%20delete%20user%20in%20Bitbucket%20using%20Command%20Line%20Interface%20(CLI)"
format: markdown
---
This article explains how to delete a user in Bitbucket using *Command Line Interface (CLI)*.

## Instructions

Use the [**removeUser**](https://appfire.atlassian.net/wiki/spaces/SCLI/pages/73371062/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*](https://appfire.atlassian.net/wiki/spaces/SCLI/pages/73368641/--userId) takes the username of the user in Bitbucket.

> ℹ️ <span style="color: #000000">It is recommended to test this scenario in a non-production environment, or run the action with the</span><span style="color: #333333"> </span>[*--simulate*](https://appfire.atlassian.net/wiki/spaces/BCLI/pages/65933690/Parameters#Parameters-simulate)<span style="color: #333333"> </span><span style="color: #000000">parameter to verify the behavior before deploying.</span>