KB Article #177582
xdcmd delete - How to delete objects from Composer using xdcmd
Problem
-- How to use the xdcmd delete functionality to delete an object from Composer (channel, application, partner, script etc.)
-- How to determine the Url of an object in order to use xdcmd (delete or other options)
Resolution
1) Check in the directory Axway\Composer\composer\batch, in the xdcmd properties file, to have the “Auto-connection feature” and “Auto-login feature” fields correctly configured (the hostname and port for the Composer machine, the user and password that you’ll use to execute xdcmd)
2) Please note that if a user is already connected to the Composer server from the Composer client, then you cannot use the same username to run the xdcmd command. Either use another user, or disconnect from Composer Client.
3) If the object that must be deleted is already sent to server, please see Note below. Otherwise, to list the objects from Composer, use one of the following commands (depending on the type of the object that is to be deleted):
xdcmd.bat getObjects –t Channel
xdcmd.bat getObjects –t Application
xdcmd.bat getObjects –t Partner
xdcmd.bat getObjects –t XIBMapBroker <--- this will list all MapBroker objects
xdcmd.bat getObjects –t XIBMapStage <--- this will list all MapStage objects
xdcmd.bat getObjects –t XIBServerTask <--- this will list all Integration Task objects
xdcmd.bat getObjects –t XIBSoftwareXib <--- this will list all Integrator server objects
The output will show all the objects of the respective type, their Url and the current status (Checked, Not Checked, Commited).
4) In the output of the listing command, look for the object to be deleted. For example:
Channel.(Application.Default.test.FTP:1;XIBSoftwareXib.Default.XIB373:1).Default.test.FTP_IN:1 MADA ToBeChecked
The Url will be the entire string, until the last “ : “ (as put in bold above).
Some examples of how Url`s are formed:
If the folder structure in Composer is Company\Mada_Work (and the objects are in this Mada_Work), the Url`s will have the following pattern: <Object_type>.<Environment name>.<Folder_name>.<Object_name>
The environment name can be found in the Administration mode -> Environments tab
- Pattern: Channel.(<Connection point 1>:1;<Connection point 2>:1).Default.<Folder_name>.<Object_name>
Example: Channel.(Application.Default.Mada_Work.FTPapplication:1;XIBSoftwareXib.Default.Integrator373:1).Default.Mada_Work.FTP_OUT_for_GTW <---where FTP_OUT_for_GTW is the name of the channel (connecting the FTPapplication to Integrator373 server
- Application.Default.Mada_Work.JDBC <---where JDBC is the name of the application
- Partner.Default.Mada_Work.SAP_Partner <---where SAP_Partner is the name of the partner
- XIBServerTask.Mada_Work.IT_XIB_TO_XFB <---where IT_XIB_TO_XFB is the name of the Integration Task
- XIBMapStage.Mada_Work.MS_GP_SERVICE2_03 <---where MS_GP_SERVICE2_03 is the name of the MapStage
- XIBMapBroker.Mada_Work.SQL_MAP <---where SQL_MAP is the name of the MapBroker
- XIBSoftwareXib.Default.Integrator373 <---where Integrator373 is the name of the Integrator server object
5) The delete command can now be executed: xdcmd.bat delete –url “Object_Url”
For the above example: xdcmd.bat delete –url ‘’Channel.(Application.Default.test.FTP:1;XIBSoftwareXib.Default.XIB373:1).Default.test.FTP_IN’’
For steps 3-5, please check the attached printscreen.
Note:
If the object to be removed is already sent to the Integrator server, firstly it must be removed from server. This can be done by executing the following command:
xdcmd.bat removeFromServer -url “Object_Url_as_determined_above"