// Module included in the following assemblies:
//
// * virt/virtual_machines/virt-deprecated-tasks.adoc

:_mod-docs-content-type: PROCEDURE
[id="virt-deprecated-tasks.web_{context}"]
= Removing deprecated or unused resources

[role="_abstract"]
You can clean up deprecated or unused resources associated with the {pipelines-title} Operator.

.Procedure

* Remove any remaining {pipelines-shortname} resources from the cluster by running the following command:
+
[source,terminal]
----
$ oc delete clusterroles,rolebindings,serviceaccounts,configmaps,pipelines,tasks \
  --selector 'app.kubernetes.io/managed-by=ssp-operator' \
  --selector 'app.kubernetes.io/component in (tektonPipelines,tektonTasks)' \
  --selector 'app.kubernetes.io/name in (tekton-pipelines,tekton-tasks)' \
  --ignore-not-found \
  --all-namespaces
----
+
If the {pipelines-title} Operator custom resource definitions (CRDs) have already been removed, the command may return an error. You can safely ignore this, as all other matching resources will still be deleted.
