[UNIX, Linux, Windows, IBM i]

DELETE SERVICE (delete a service definition) on Multiplatforms

Use the MQSC command DELETE SERVICE to delete a service definition.

Using MQSC commands

For information on how you use MQSC commands, see Performing local administration tasks using MQSC commands.

Synonym:

DELETE SERVICE

Read syntax diagramSkip visual syntax diagram DELETE SERVICE ( service-name ) IGNSTATE(NO)1IGNSTATE(YES)
Notes:
  • 1 Valid only on AIX®, Linux®, and Windows.

Usage notes for DELETE SERVICE

  1. The command fails if an application has the specified service object open, or if the service is currently running.

Keyword and parameter descriptions for DELETE SERVICE

(service-name)

The name of the service definition to be deleted. This is required. The name must be that of an existing service defined on the local queue manager.

[MQ 9.2.1 Dec 2020][AIX, Linux, Windows]IGNSTATE
This parameter allows you to specify whether you want the command to return an error code if the object is already in the state the command moves it to.
A value of YES means the return code and message are the same as if the MQSC object has not been deleted.

A value of NO means that the return code is zero, even if the object has been deleted. This is the default value.