Unable to Forcibly delete Project or Namespace as dedicated-admin

Solution Unverified - Updated -


  • Permission error is returned

    ~ curl -k -H "Content-Type: application/json" -X PUT --data-binary @test-finalizer.json
        "kind": "Status",
        "apiVersion": "v1",
        "metadata": {
        "status": "Failure",
        "message": "namespaces \"test-finalizer\" is forbidden: User \"dedadmin@example.com\" cannot update resource \"namespaces/finalize\" in API group \"\" in the namespace \"test-finalizer\"",
        "reason": "Forbidden",
        "details": {
            "name": "test-finalizer",
            "kind": "namespaces"
        "code": 403


  • Red Hat Openshift Dedicated (OSD)
    • 4
  • Red Hat Managed Integration (RHMI)
    • 2
  • Namespace failed to delete with oc delete project dev --force --grace-period=0
  • All attempts to remove dependencies have been done and project still won't delete
  • Attempting to remove a finalizer in the namespace JSON or YAML

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content