Deleting a File Within an Application

This RESTful web service request can be used to delete a file stored within an application.

HTTP Method: DELETE

REST URL Format:

http://host:port/ibi_apps/rs/ibfs/EDA/NodeName/Appname/FileName?IBIRS_action=delete

where:

host

Is the name of the system where WebFOCUS is installed.

port

Is the port number used by WebFOCUS.

NodeName

Is the name of the Reporting Server Node. For more information, see Listing WebFOCUS Reporting Server Nodes.

Appname

Is the name of the application containing the files to be listed. For more information, see Listing Applications.

FileName

Is the name of the file as defined in the name attribute when listing files within an application. For more information, see Listing Files Within an Application.

Example:

In the following example, the carinst_rest.fex report from the ibisamp application is deleted. Carinst_rest.fex is defined in the name attribute when listing the files within an application. For more information, see Listing Files Within an Application.

Request:

http://localhost:8080/ibi_apps/rs/ibfs/EDA/EDASERVE/ibisamp/
carinst_rest.fex?IBIRS_action=delete

Response:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<ibfsrpc _jt="IBFSResponseObject" language="EN" name="IBIRS_action" returncode="10000"
   returndesc="SUCCESS" subreturncode="0" subsystem="SSYS" type="simple">
 <ibfsparams size="0"/>
 <rootObject _jt="IBFSFile" description="carinst_rest.fex" dummy="false"
   fullPath="IBFS:/EDA/EDASERVE/ibisamp/carinst_rest.fex" length="0" name="carinst_rest.fex"
   policy="///+f///////9/////////////+AAAAA" type="IBFSFile"/>
</ibfsrpc>

If the value for the returncode attribute in the XML response is 10000, then the file was deleted successfully.


Information Builders