The DFHCSDUP DELETE command
Delete a single resource definition in a group, all the resource definitions in a group, or all the group names in a group list.
DELETE syntax >>-DELete--+-All--------------------+---------------------------> '-+-Atomservice(name)--+-' +-Bundle(name)-------+ +-CONnection(name)---+ +-CORbaserver(name)--+ +-DB2Conn(name)------+ +-DB2Entry(name)-----+ +-DB2Tran(name)------+ +-DJar(name)---------+ +-DOctemplate(name)--+ +-Enqmodel(name)-----+ +-File(name)---------+ +-Ipconn(name)-------+ +-JOurnalmodel(name)-+ +-JVmserver(name)----+ +-LIbrary(name)------+ +-LSRpool(name)------+ +-MApset(name)-------+ +-MQconn(name)-------+ +-PARTItionset(name)-+ +-PARTNer(name)------+ +-PIpeline(name)-----+ +-PROCesstype(name)--+ +-PROFile(name)------+ +-PROGram(name)------+ +-Requestmodel(name)-+ +-Sessions(name)-----+ +-TCpipservice(name)-+ +-TDqueue(name)------+ +-TErminal(name)-----+ +-TRANClass(name)----+ +-TRANSaction(name)--+ +-TSmodel(name)------+ +-TYpeterm(name)-----+ +-Urimap(name)-------+ '-Webservice(name)---' >--+-Group--(--groupname--)-+--+--------+---------------------->< '-List--(--listname--)---' '-Remove-'
Description
Deleting a resource definition is different from removing a group from a list (see The DFHCSDUP REMOVE command). A deleted resource definition really does disappear from the CSD file.
When you DELETE the last resource in a group, the group is automatically deleted. An empty group cannot exist.
If a group is deleted, the group is not removed from all lists that contain it.
You cannot delete the definitions of groups and lists supplied by IBM®.
If you delete a list, the definitions of the resources within the groups contained in the list are not deleted. To do this, you must also delete each group individually.
Options
- Group(groupname)
- If this is specified alone, it indicates the name of the group to be deleted. If a resource is also specified, it indicates the group to which the resource belongs. Do not use a generic group name.
- List(listname)
- specifies the name of the list to be deleted. Do not use a generic list name.
- Remove
- If this is specified when the group is deleted, the group is removed from all lists that contained it unless UPGRADE commands are running.
- Resource(name)
- specifies the name of the resource to be deleted. Do not use a
generic resource name.
This operand can be used only with the GROUP option.
Examples
- GB001
- GB002
TERMINAL(CON0)
TERMINAL(CON1)
TERMINAL(TEST)
DELETE TERMINAL(TEST) GROUP(GB001)
DELETE GROUP(GB002)
DELETE LIST(LISTA)
