Purpose:
The removefile command is used to delete files.
When a file is no longer needed, use the removefile command to delete the file. It is necessary to use the full path of the file.
Syntax:
removefile("filename.ext");
Example:
In below example, we will use removefile command to delete a sample file using WS function. The code would be as follows:
LiquidUI Code:
////////////////////////// SAPLSMTR_NAVIGATION.E0100.sjs ///////////////////////////
pushbutton([TOOLBAR],'Remove File','?',{'process':z_removefile});
function z_removefile(){
removefile("file1.txt ");
}
The "file1.txt" is now deleted.