The removePolicyTemplate command removes the specified policy template from the system.

Command Syntax

btmcli removePolicy -name PolTemplName [-type Type] [-subType SubType] 
                   [-version PolicyVersion] [-f] 
                   -s sphereUrl -l username:password

To determine the type and subtype of a policy template, select Policy Templates in the Navigator. The type and subtype for each policy is displayed in the main pane.

Name Long Name Description
-name -- The name of the policy template you want to remove. If this name is unique, you do not need to supply additional type or version information.
-type -- The policy type for the policy template you want to remove. Use this flag if the policy name is not unique.
-subType -- The policy subtype for the policy template you want to remove.

If the name and type combination is not unique, specify a policy subtype.

-version -- The version associated with the policy you want to remove.

If the name, type, and subtype triple is not unique, specify the version number. Version numbers are automatically appended to policy names to create unique policies.

-f -force Remove the policy template even if it is marked internally "do not remove."
-s -sphereUrl The URL of the sphere where the policy is applied.


This flag is not required if you have set the AP_SPHERE_URLenvironment variable for your sphere.

-l -userLogin The username and password associated with the sphere, in the format: username:password. This set of credentials must belong to a user in the btmadmin role.

See Security Options in Accessing CLI Commands for information on furnishing login credentials.

You can encrypt passwords using the encryptPassword command.


The following example removes the policy template myPolicyTemplate from the sphere.

btmcli removePolicyTemplate -name myPolicyTemplate
                            -s http://localhost:8080/btmcentral/sphere/
                            -l admin:abracadabra