[UNIX, Linux, Windows, IBM i]

MQCMD_DELETE_PROT_POLICY (delete security policy) on Multiplatforms

The Delete Policy (MQCMD_DELETE_PROT_POLICY) PCF 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.

Optional parameters

[MQ 9.2.1 Dec 2020][AIX, Linux, Windows]IgnoreState (MQCFST)
Specifies whether the command returns an error code if the object is already in the state the command would move it to (parameter identifier MQIACF_IGNORE_STATE). The value can be any of the following values:
MQIS_YES
The return code and message are the same as if the object has not been deleted.
MQIS_NO
The return code is zero, even if the object has been deleted. This is the default value.

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.