#g4msod_deleteItem

*//////////////////////////////////////////////////////////////*

* g4msod_delteItem - Delete an Item *

* *

* Output: *

* out_errMsg - The error message (if error exists). *

* *

* Returns: *

* -1 for error, 0 for success *

* *

* Settable Variables ([r]=required) *

* id - MS ID [r] *

* item_id - The ID of the item to delete. Either this or *

* path is required. [r] *

* path - The fully qualified name of the file or folder to *

* delete. Either this or item_id is requred. [r] *

* ccsid - The CCSID to use (1252) *

* debug - Turn on Debug (*NO, *YES) *

* debug_file - The debug file name. *

* (/tmp/g4ms_[id]_deleteItemDebug.txt) *

* *

*//////////////////////////////////////////////////////////////*

D g4msod_deleteItem...

D PR 10i 0

D out_errMsg 256 Options(*NOPASS)


g4msod_deleteItem will place the item in the recycle bin.

Returns: -1 for error, 0 for success.

Optional Parameters:

  • Error Message (output) - Error message

Settable Variables (use #g4msod_setValue):

  • id (required) - Your Microsoft ID

  • item_id - The id of the item. Either the item_id or path must be used. Using the item_id will result in faster execution.
    OR

  • path - The fully qualified path to the item you wish to delete.

ie: /my Documents/Files/test.pdf

This parameter IS case sensitive.

  • ccsid - The CCSID to use. The default is 1252.

  • debug - Specify *YES to turn on debug, or *NO to turn off debug. The default is *NO.

  • debug_file - Specify the fully qualified file name for the main debug file. The default is /tmp/g4ms_[id]_deleteItemDebug.txt.[n] where [id] is the Microsoft ID and [n] is the request index.