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--------------------+---------------------------> '-+-CONnection(name)---+-' +-CORbaserver(name)--+ +-DB2Conn(name)------+ +-DB2Entry(name)-----+ +-DB2Tran(name)------+ +-DJar(name)---------+ +-DOctemplate(name)--+ +-Enqmodel(name)-----+ +-File(name)---------+ +-Journalmodel(name)-+ +-LSRpool(name)------+ +-Mapset(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--)-+--Remove-------------------------->< '-List--(--listname--)---'
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.
When a group is deleted, the group is removed from all lists that had contained it, except when running UPGRADE commands.
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.
This operand can be used only with the GROUP option.
TERMINAL(CON0)
TERMINAL(CON1)
TERMINAL(TEST)
DELETE TERMINAL(TEST) GROUP(GB001)
DELETE GROUP(GB002)
DELETE LIST(LISTA)