Skip to end of banner
Go to start of banner

How to use deleteRepository action in Bitbucket 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 3 Next »

This article explains how to delete a Bitbucket repository using Command Line Interface

Instructions

  1. deleteRepository action deletes a single repository from a Bitbucket project.
  2. Refer to the below-given sample action command to delete a repository in 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.

  • No labels