The DELCDS command is used to delete a cloud data set (CDS) and its catalog entry.
Use DELCDS instead of an IDCAMS DELETE to delete a cloud data set, both the catalog entry and the data itself will be removed. The selected resource will be updated in the UI during the periodic synchronization, which by default, is performed automatically every 5 minutes. If needed, on-demand synchronization can be performed via the UI, by clicking the “SYNC WITH STORAGE” button in the “Agents” tab. See the Administration and User Guide for more information.
The command supports additional keywords to allow deletion of a cloud data set that has not yet expired or a data set that does not have a valid expiration date. To determine whether a data set has expired, the command follows the logic described in Determining a data set expiration date.
The DELCDS action cannot be undone.
M9CLI DELCDS <dsname> VOLSER(<volser>)
The output displays the given DELCDS command and parameters, followed by the requested information:
ZM9I015I Cloud data set <dsname> on volume <volser> was deleted successfully
ZM9I014E Cloud data set <dsname> with UNIQUEID <uniqueid> has not expired yet, use the PURGE keyword to force delete regardless of expiration
Deleting an expired cloud data set
TSO M9CLI DELCDS M9.DEMO.CDS.PS VOLSER(MAAA00)
Deleting a cloud data set that has not yet expired
TSO M9CLI DELCDS M9.DEMO.CDS.NOTEXP VOLSER(MAAA00) PURGE