---
title: "How to bulk delete deployment projects in Bamboo using CLI"
canonical: "https://support.appfire.com/space/SUPPORT/89142662/How%20to%20bulk%20delete%20deployment%20projects%20in%20Bamboo%20using%20CLI"
format: markdown
---
<span style="color: #000000">This article explains how to bulk delete deployment projects in Bamboo server using the </span>*<span style="color: #000000">Bamboo Command Line Interface </span>*<span style="color: #000000">app</span>*<span style="color: #000000">.</span>*

## <span style="color: #000000">Instructions</span>

<span style="color: #000000">For this task, use the </span>**<span style="color: #000000">runFromCsv</span>**<span style="color: #000000"> and </span>**<span style="color: #000000">deleteDeploymentProject</span>**<span style="color: #000000"> CLI actions as explained:</span>

- [**runFromCsv**](https://appfire.atlassian.net/wiki/spaces/BCLI/pages/65935386/runFromCsv)<span style="color: #000000">: Runs all the actions generated from the CSV file with the mentioned parameters.</span>
- [**deleteDeploymentProject**](https://appfire.atlassian.net/wiki/x/QBTuAw)<span style="color: #000000">: Delete a deployment project by name or ID.</span>
- [**<span style="color: #000000">runFromList</span>**](https://appfire.atlassian.net/wiki/x/wBzuAw)<span style="color: #000000">: </span><span style="color: #091e42">Run actions for each entry in a list with corresponding entry replacement variable.</span>

<span style="color: #000000">To bulk delete the deployment projects:</span>

## <span style="color: #000000">Option 1: </span>

1. <span style="color: #000000">Execute the following command If you know the name of the </span><span style="color: #000000">deployment projects:</span>

## <span style="color: #000000">Option 2: </span>

<span style="color: #000000">Execute the following command If you do not know the name of the </span><span style="color: #000000">deployment projects:</span>  


1. <span style="color: #000000">Log in as a Bamboo administrator.</span>
2. Navigate to ***Deploy > All deployment projects*** to view all the deployment projects in the Bamboo instance.  
> Macro (inline-media-image)
3. <span style="color: #000000">Take a n</span><span style="color: #000000">ote of the deployment project IDs</span><span style="color: #000000"> or their names that are to be deleted.</span>  
> Macro (inline-media-image)
4. <span style="color: #000000">Create a CSV file named </span>*<span style="color: #000000">projects</span>**<span style="color: #000000">.csv </span>*<span style="color: #000000">with the list of the deployment projects to be deleted. These deployment projects are the ones noted in the previous step.</span>  
> Macro (inline-media-image)
5. <span style="color: #000000">Execute the following command:</span>
  <span style="color: #000000">The output displayed on the terminal is similar to:</span>
  

> ℹ️ - <span style="color: #000000">It is recommended to test the commands in a non-production environment, </span><span style="color: #000000">or run the action with </span>[*<span style="color: #000000">--simulate</span>*](https://appfire.atlassian.net/wiki/spaces/BCLI/pages/65933894/--simulate)<span style="color: #333333"> </span><span style="color: #000000">parameter to verify the behaviour before deploying.</span>
> ℹ️ - <span style="color: #000000">Ensure you have the</span><span style="color: #091e42"> </span>[<span style="color: #091e42">Bamboo Command Line Interface</span>](https://bobswift.atlassian.net/wiki/spaces/BCLI/overview?homepageId=2392068)<span style="color: #091e42"> </span><span style="color: #000000">app installed in your Bamboo instance.</span>