OceanBase
English日本語简体中文
Docs Home
Products
Integrations
Release Notes

Databases

OceanBase DatabaseOceanBase Cloud OceanBase Best Practices

Tools

OceanBase Cloud PlatformOceanBase Migration ServiceOceanBase Developer CenterOceanBase Migration AssessmentOceanBase Admin ToolOceanBase Loader and DumperOceanBase DeployerKubernetes operator for OceanBaseOceanBase Diagnostic Tool OceanBase Binlog Service

Connectors and Middleware

OceanBase Database Proxy OceanBase Connector/C OceanBase Connector/J OceanBase Connector/ODBC OceanBase Connector/NETOceanBase Command-Line Client

Databases

OceanBase DatabaseOceanBase Cloud OceanBase Best Practices

Connectors and Middleware

OceanBase Database Proxy OceanBase Connector/C OceanBase Connector/J OceanBase Connector/ODBC OceanBase Connector/NETOceanBase Command-Line Client

Tools

OceanBase Cloud PlatformOceanBase Migration ServiceOceanBase Developer CenterOceanBase Migration AssessmentOceanBase Admin ToolOceanBase Loader and DumperOceanBase DeployerKubernetes operator for OceanBaseOceanBase Diagnostic Tool OceanBase Binlog Service
OceanBase DatabaseOceanBase Cloud ToolsConnectors and MiddlewareLifecycle Support Policy

Kubernetes operator for OceanBase

V2.1.2Community Edition
  • Overview
  • Quick start
  • Deploy
  • Upgrade
  • Configure
  • User guide
    • Cluster management
      • Manage clusters
      • Create a cluster
      • Zone management
        • Add zones to a cluster
        • Delete zones from a cluster
      • Server management
        • Add OBServer nodes to zones
        • Delete OBServer nodes from zones
      • Upgrade a cluster
      • Manage parameters
      • Delete a cluster
    • Tenant management
      • Manage tenants
      • Create a tenant
      • Modify tenant
        • Manage resources
        • Manage replicas
        • Modify other parameters
      • Delete a tenant
      • Perform tenant O&M operations
    • High availability
      • High availability
      • Restore service from node failure
      • Back up a tenant
      • Restore data from a backup
      • Physical standby tenant
  • Appendix
    • Deploy OceanBase Database and applications in a Kubernetes cluster
    • FAQ
  • Changelog

Download PDF

Document Feedback
  1. Documentation Center
  2. Kubernetes operator for OceanBase
  3. V2.1.2

Delete a cluster

Last Updated:2026-09-04 08:21:43

Procedure

This topic describes how to delete an OceanBase cluster by using ob-operator.

Procedure

  1. Run the following command to delete a specific OceanBase cluster:

    kubectl delete obclusters.oceanbase.oceanbase.com test -n oceanbase
    
  2. Check whether the cluster and related resources are deleted.

  • If you run the following command to query the deleted OceanBase cluster, no information about the resource is returned:

    kubectl get obclusters.oceanbase.oceanbase.com -n oceanbase
    
  • If you run the following command to query the deleted zone, no information about the resource is returned:

    kubectl get obzones.oceanbase.oceanbase.com -n oceanbase
    
  • If you run the following command to query the deleted OBServer node, no information about the resource is returned:

    kubectl get observers.oceanbase.oceanbase.com -n oceanbase
    
  • Check whether the pods are deleted:

    kubectl get pods -n oceanbase
    
  • Check whether the PersistentVolumeClaim (PVC) is deleted:

    kubectl get pvc -n oceanbase
    

Previous topic

Manage parameters
Last

Next topic

Manage tenants
Next
on this page
Procedure