Delete Policy on Multiplatforms

The Delete Policy (MQCMD_DELETE_PROT_POLICY) command deletes a security policy.


Required parameters

    Policy-name (MQCFST)
    The name of the security policy to be deleted (parameter identifier: MQCA_POLICY_NAME).

    The name of the policy, or policies, to delete are the same as the name of the queue, or queues, that the policies control.

    The maximum length of the string is MQ_OBJECT_NAME_LENGTH.


Error codes (Delete Security Policy)

This command might return the following error codes in the response format header, in addition to the values shown on page Error codes applicable to all commands.

    Reason (MQLONG)
    The value can be any of the following values:

      MQRC_OBJECT_TYPE_ERROR
      Invalid object type.

      MQRCCF_POLICY_NAME_ERROR
      Invalid policy name.