Documentation

kubectl minio tenant delete

Description

Command Requires MinIO Operator

Use the following command to validate that the operator is online and available prior to running this command:

kubectl get deployments -A --field-selector metadata.name=minio-operator

Issue the kubectl minio init command to initiate the operator if it is not already running in the Kubernetes cluster.

Deletes the MinIO Tenant and its associated resources.

The delete behavior of each Persistent Volume Claims (PVC) generated by the Tenant depends on the Reclaim Policy of its bound Persistent Volume (PV):

  • For recycle or delete policies, the command deletes the PVC.

  • For retain, the command retains the PVC.

Deletion of the underlying PV, whether automatic or manual, results in the loss of any objects stored on the MinIO Tenant. Perform all due diligence in ensuring the safety of stored data prior to deleting the tenant.

Syntax

The following example deletes a MinIO Tenant in the namespace minio-tenant-1. It keeps the namespace intact after deleting the tenant.

kubectl minio tenant delete                        \
                       minio-tenant-1              \
                       --namespace minio-tenant-1  \
                       --retain-namespace

The command has the following syntax:

kubectl minio tenant delete                 \
                       TENANT_NAME          \
                       --force              \
                       --namespace          \
                       [--retain-namespace] \

Flags

The command supports the following flags:

TENANT_NAME
Required

The name of the MinIO tenant which the command deletes.

--force
Optional

Forces the deletion of the tenant.

--namespace
Required

The namespace scope to access.

--retain-namespace
Optional

Keeps the namespace after deleting the tenant.

Omit to delete the namespace after deleting the tenant.

Warning

Deleting a namespace deletes all resources associated to that namespace.