This article explains how to delete a Bitbucket project using Bitbucket Command Line Interface (CLI).
An empty project with no repositories can be deleted directly with the deleteProject action.
Refer to the following sample action command to delete a project, test, as an example:
--action deleteProject --project "test"
In this CLI action:
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.