Skill Level: Any Skill Level

In DataPower, Services or Objects references other objects. When it is time to delete the top object those objects being referenced needs to be deleted, too. This recipe explains how to make this process easier and faster.


  • A DataPower user authorized to creating and deleting domains, and exporting objects.


  1. Create a temporary domain

    • Login to DataPower default domain.
    • Search for “domain” and click to “Application Domain”
    • Click to “Add” button

    Domains List

    • Defiine a name for your domain, for instance “delete”. You can leave all options as they are and click “Apply”. You do not have to “Save Configuration”

    Create temporary domain

  2. Delete objects

    • Switch to domain that you need to delete service or object. You can switch without saving configuration.
    • On the “Control Panel” click to “Export Configuration”

    Control Panel

    • Choose “Copy or move configuration and files between domains” option and click “Next”

    Export Option

    • On the “Export Configuration” window check “on” for “Delete After Export” option.

    Delete After Export

    • Leave the export options as below :
      • Currently running configuration
      • Include all objects required by selected objects
      • Export files referenced by selected objects


    • On the “Select configuration objects to export” section, select the objects those you need to delete and move them to “Selected Objects”

    Select Objects

    • You can click to “Show Contents” buttons to view those will be exported and deleted. You will see that “default” objects are listed, but do not worry. Objects that referenced by the Service/Object you need to delete, are not going to be deleted if they are being used/referenced by other objects.
    • Click “Next”.
    • On the next page, you will be asked for the domain name which you want to Import those objects. Select the “delete” domain and click Import.
    • Screen-Shot-2019-09-09-at-00.08.02Objects those imported to “delete” domain will be listed.

    Exported Objects

    • Click “Done”. To make sure you did not mistakenly deleted any objects that you need, you can click “Review Changes” and check the list. If you are OK you can save your configuration.


  3. Delete the temporary domain

    • Switch to the “default” domain and search for “domains” and select “Application Domain”.
    • Select the “delete” domain and click “Delete” button.

    Delete Domain

    • After deleting the “delete” domain you can notice that “Review Changes” warning will be disappeared.

1 comment on"Delete a DataPower Service with the All Objects referenced"

  1. Jennifer Stipe July 02, 2020

    Thank you – this was very helpful for deleting a Web Service Proxy and all of its objects. Is it possible to do the export steps via the REST or XML management interface? I know I can create the domain via the REST interface but I cannot find anything in the xml-mgmt.xsd that looks like an export/copy/move configuration command.

Join The Discussion