Skip to end of banner
Go to start of banner

How to use delete a repository with Bitbucket Command Line Interface (CLI)

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 5 Current »

This article explains how to delete a Bitbucket repository 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:

--action deleteRepository --project "slug" --repository "repo-2"

In the CLI action:

  • --project value refers to project key, name, or ID.

  • --repository value refers to repository key, name, or ID.

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