Versions Compared

Key

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

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

Instructions

  1. Use the deleteRepository action

    deletes

    to delete a single repository from a Bitbucket project.

    Refer to the below-given sample action command to delete a repository in a project:

    Code Block
    themeMidnight
    bitbucketLocal --action deleteRepository --project "slug" --repository "repo-2"
    Here bitbucketLocal is the name used for the Bitbucket instance in acli.properties file. 

    In above CLI action, 

    • --project value refers to Project key, name, or id.

    • --repository value refers to Repository slug, name, or id.
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.

...