This sections describes the
calicoctl delete command.
Read the calicoctl command line interface user reference for a full list of calicoctl commands.
Note: The available actions for a specific resource type may be limited based on the datastore used for Calico (etcdv3 / Kubernetes API). Please refer to the Resources section for details about each resource type.
Displaying the help text for ‘calicoctl delete’ command
calicoctl delete --help to display the following help menu for the
Delete a set of resources (of mixed type) using the data in resources.yaml.
calicoctl delete -f ./resources.yaml
Results indicate that 8 resources were successfully deleted.
Delete a policy resource by name. The policy is called “policy1”.
bin/calicoctl delete policy policy1
Results indicate success.