---
# System prepended metadata

title: Clean up custom resources
tags: [Documentation]

---

# Clean up custom resources
###### tags: `Documentation`


* Example
```
oc get project openshift-storage
oc get project openshift-storage -o yaml
```

Find:
```
message: Some content in the namespace has finalizers remaining: cephobjectstoreuser.ceph.rook.io
```

```
oc get  <Object-kind> -n  <project-name>
oc get cephobjectstoreusers.ceph.rook.io -n openshift-storage
```

Remove finalizer:
```
oc patch -n openshift-storage cephobjectstoreusers.ceph.rook.io/noobaa-ceph-objectstore-user \
--type=merge -p '{"metadata": {"finalizers":null}}'
```
This step can also be done by hand..

## Additionally...

Execute:
```
 oc api-resources --verbs=list --namespaced -o name | xargs -n 1 kubectl get --show-kind --ignore-not-found -n openshift-storage
```

