AWS CodePipeline
User Guide (API Version 2015-07-09)

A new console design is available for this service. Although the procedures in this guide were written for the older version of the console, you will find many of the concepts and basic procedures in this guide still apply.

Delete a Pipeline in AWS CodePipeline

You can always edit a pipeline to change its functionality, but you might decide you want to delete it instead. You can delete a pipeline by using the AWS CodePipeline console or by using the AWS CLI and delete-pipeline command.

Delete a Pipeline (Console)

To delete a pipeline in the AWS CodePipeline console

  1. Sign in to the AWS Management Console and open the AWS CodePipeline console at

  2. The names of all pipelines associated with your AWS account are displayed, along with their status.

  3. In Name, choose the name of the pipeline you want to delete. This opens a detailed view of the pipeline.

  4. On the pipeline details page, choose Edit. This opens the editing page for the pipeline.

  5. On the Edit page, choose Delete.

  6. Type the name of the pipeline, and then choose Delete.


    This action cannot be undone.

Delete a Pipeline (CLI)

To manually delete a pipeline by using the AWS CLI, use the delete-pipeline command.


Deleting a pipeline is irreversible. There is no confirmation dialog box. After the command is run, the pipeline is deleted, but none of the resources used in the pipeline are deleted. This makes it easier to create a new pipeline that uses those resources to automate the release of your software.

To delete a pipeline by using the AWS CLI

  1. Open a terminal (Linux, macOS, or Unix) or command prompt (Windows) and use the AWS CLI to run the delete-pipeline command, specifying the name of the pipeline you want to delete. For example, to delete a pipeline named MyFirstPipeline:

    aws codepipeline delete-pipeline --name MyFirstPipeline

    This command returns nothing.

  2. Delete any resources no longer needed.


    Deleting a pipeline does not delete the resources used in the pipeline, such as the AWS CodeDeploy or Elastic Beanstalk application you used to deploy your code, or, if you created your pipeline from the AWS CodePipeline console, the Amazon S3 bucket AWS CodePipeline created to store the artifacts of your pipelines. Make sure that you delete resources that are no longer required so that you will not be charged for them in the future. For example, when you use the console to create a pipeline for the first time, AWS CodePipeline creates one Amazon S3 bucket to store all artifacts for all of your pipelines. If you have deleted all of your pipelines, follow the steps in Deleting a Bucket.