Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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

Instructions

  1. The CLI action: 

    Using removeGroup allows deleting a group from Bitbucket instance.

    Refer to the action command given below to delete a group:

    Code Block
    themeMidnight
    --action removeGroup --group "testgroup"


  2. The users in the group to be deleted can be moved to another group by mentioning the group name in --defaultGroup optional parameter.

    Code Block
    themeMidnight
    --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.
    In above CLI action, 


Info

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.

...