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 using Bitbucket Command Line Interface (CLI).

Instructions

Use

...

the deleteRepository action to delete a single repository from a Bitbucket project.

In the following example, the command deletes the repo-2 repository from the slug project:

Code Block
themeMidnight
--action deleteRepository --project "slug" --repository "repo-2"

In

...

the CLI action

...

:

...

  • to project key, name, or

...

...

  • to repository key, 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.

...