mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
26 lines
674 B
Plaintext
26 lines
674 B
Plaintext
// Module included in the following assemblies:
|
|
// * builds/basic-build-operations.adoc
|
|
|
|
[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>
|
|
----
|