Top

Name

xmlStorageSystem.deleteMultipleFiles — Remove files from XML Storage System Directory

Synopsis

structure xmlStorageSystem.deleteMultipleFiles ( in email string ,
  in password string ,
  in relativepathList array );
 

Description

This method is used for removing files from the repository.

Parameters

email

For user identification, this should be a valid email account.

password

The MD5 hash of the password.

relativepathList

Array of strings of paths relative to the <user home>/blog folder in WebDAV to be deleted.

Return Types

This method returns a structure as follows:

    'flError' boolean   		0 success, 1 fault
    'message' string    		fault message (can be used to handle error cases)
    'errorList' array of string 	contains a list of errors corresponding to files
                      which cannot be removed.  Successfully deleted files have an empty string.

Examples

Example 24.541. Using the XML Storage System to Delete Multiple Files

Simple example of removing a file.

    SQL> SOAP_CLIENT (url=>'http://example.com/xmlStorageSystem', operation=>'deleteMultipleFiles',
	 parameters=>vector ('email','user@example.domain', 'password', md5('xxx'),
	   'relativepathList', vector ('test.txt'));

    - SOAP Response

    <deleteMultipleFilesResponse>
      <Result>
       <flError>0</flError>
       <message />
       <errorList>
	 <item />
       </errorList>
      </Result>
    </deleteMultipleFilesResponse>