Skip to end of banner
Go to start of banner

How to delete a group in Bitbucket using Command Line Interface

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

This article explains how to delete a group in Bitbucket using Command Line Interface (CLI).

Instructions

  1. The CLI action: removeGroup allows deleting a group from Bitbucket instance.
  2. Refer to the action command given below to delete a group:

    --action removeGroup --group "testgroup"
  3. The users in the group to be deleted can be moved to another group by mentioning the group name in --defaultGroup optional parameter.

    --action removeGroup --group "testgroup" --defaultGroup "jira-administrators"

    With the above command, all the users inside the testgroup will be moved to jira-administrators group and then the testgroup will be deleted.


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.

  • No labels