This article explains how to delete a Bitbucket repository using Command Line Interface
Instructions
- deleteRepository action deletes a single repository in a Bitbucket project.
Refer to the below-given sample action command to delete a project.
bitbucketLocal --action deleteRepository --project "slug" --repository "repo-2"
Here bitbucketLocal is the name used for the Bitbucket instance in acli.properties file.
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.