Deleting DB2 Subclients Using the Commvault Command Line Interface

You can use XML to delete DB2 subclients. Run the operation from the command line, or automate configuration by combining command line operations in a script.

You can include the XML parameters in the XML file, or you can specify them on the command line when they frequently change. For more information on command line parameters and XML elements, see Command Line - Syntax.

Caution: If you do not include the subclientName parameter, all user-created DB2 subclients are deleted for the DB2 backup set.


  1. On the DB2 agent host, run the qlogin command to log on to the CommServe computer.
  2. Download the delete_subclient_template.xml file to the computer where you will run the command.
  3. Open the delete_subclient_template.xml file, add your specific parameters, and save the file.

    For information on supported backup set XML parameters, see Available XML Parameters for DB2 Backup Set Configuration.

  4. On the command line, go to Software_Installation_Directory/Base and type the command.


    qoperation execute -af delete_subclient_template.xml -appName 'DB2' -clientName 'client_name' -instanceName 'instance_name' -subclientName 'subclient_name' -backupsetName 'backup_set'


    qoperation execute -af delete_subclient_template.xml -appName 'DB2 on Unix' -clientName 'client_name' -instanceName 'instance_name' -subclientName 'subclient_name' -backupsetName 'backup_set'

  5. Run the qlogout command to log off the CommServe computer.


Deleting a DB2 subclient on Windows:

qoperation execute -af delete_subclient_template.xml -appName 'DB2' -clientName 'client1' -instanceName 'Instance001' -subclientName 'subclient1' -backupsetName 'db_backupset'

Deleting a DB2 subclient on Unix:

qoperation execute -af delete_subclient_template.xml -appName 'DB2 on Unix' -clientName 'client1' -instanceName 'Instance001' -subclientName 'subclient1' -backupsetName 'db_backupset'

Last modified: 1/7/2021 3:29:35 AM