1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 21:46:22 +01:00
Files
openshift-docs/modules/builds-basic-delete-buildconfig.adoc

27 lines
700 B
Plaintext

// Module included in the following assemblies:
// * builds/basic-build-operations.adoc
:_content-type: PROCEDURE
[id="builds-basic-delete-buildconfig_{context}"]
= Deleting a BuildConfig
You can delete a `BuildConfig` using the following command.
.Procedure
* To delete a `BuildConfig`, enter the following command:
+
[source,terminal]
----
$ oc delete bc <BuildConfigName>
----
+
This also deletes all builds that were instantiated from this `BuildConfig`.
* To delete a `BuildConfig` and keep the builds instatiated from the `BuildConfig`, specify the `--cascade=false` flag when you enter the following command:
+
[source,terminal]
----
$ oc delete --cascade=false bc <BuildConfigName>
----