How to delete a published Resource using 'destroyResource' Web Service Operation?

How to delete a published Resource using 'destroyResource' Web Service Operation?

book

Article ID: KB0077289

calendar_today

Updated On:

Products Versions
TIBCO Data Virtualization All supported versions

Description

This article contains the information needed to configure 'destroyResource' Web Service Operation to delete a published Resource in TDV. 

Issue/Introduction

How to delete a published Resource using 'destroyResource' Web Service Operation?

Resolution

Location: /services/webservices/system/admin/resource/operations/ (or) Composite Data Services/Web Services/system/admin/resource/operations/

Configure the Request Elements as below to delete a published Resource: 
path : A source path of the resource to be destroyed.
type : Specify the type as LINK
force: If 'true', attempt to destroy as many resources as possible. If 'false', do not destroy any resource if there exists at least one that is not destroyable.

Example for reference:
<resource:destroyResource xmlns:resource="http://www.compositesw.com/services/system/admin/resource">
  <resource:path>/services/databases/composite_view/CompositeView</resource:path>
  <resource:type>LINK</resource:type>
  <resource:force>true</resource:force>
</resource:destroyResource>

Response Elements:
destroyedAll: If TRUE, all of the resources were completely destroyed, including the contents of containers; otherwise FALSE.