Delete a build project in Amazon CodeBuild
You can use the CodeBuild console, Amazon CLI, or Amazon SDKs to delete a build project in CodeBuild. If you delete a project, its builds are not deleted.
You cannot delete a project that has builds and a resource policy. To delete a project with a resource policy and builds, you must first remove the resource policy and delete its builds.
Topics
Delete a build project (console)
-
Open the Amazon CodeBuild console at https://console.amazonaws.cn/codesuite/codebuild/home
. -
In the navigation pane, choose Build projects.
-
Do one of the following:
-
Choose the radio button next to the build project you want to delete, and then choose Delete.
-
Choose the link for the build project you want to delete, and then choose Delete.
Note By default, only the most recent 10 build projects are displayed. To view more build projects, choose a different value for Projects per page or use the back and forward arrows for viewing projects.
-
Delete a build project (Amazon CLI)
-
Run the
delete-project
command:aws codebuild delete-project --name
name
Replace the following placeholder:
-
name
: Required string. The name of the build project to delete. To get a list of available build projects, run thelist-projects
command. For more information, see View a list of build project names (Amazon CLI).
-
-
If successful, no data and no errors appear in the output.
For more information about using the Amazon CLI with Amazon CodeBuild, see the Command line reference.
Delete a build project (Amazon SDKs)
For more information about using Amazon CodeBuild with the Amazon SDKs, see the Amazon SDKs and tools reference.