User Manual

06.26.2025

MANUAL

Developer Function: Server Script: $ps.file.removeFile

## Overview Delete the specified file using "「$ps.file」" in "[Server Script](/en/manual/table-management-server-script)". ## Prerequisites DisableServerScriptFile in "[Script.json](/en/manual/script-json)" must be set to false. ## Syntax ``` $ps.file.removeFile(section, path) ``` ## Parameters |Parameter|Type|Required|Description| |:----------|:----------|:---:|:---------------------------| |section|string|Yes|Section name. For details about sections, see "About Sections" in "「$ps.file」". | |path|string|Yes|File name. For both Windows and Linux, use "/" as the directory separator. | ## Return Value Returns true if the file can be deleted, and false if it cannot be deleted. ## Exceptions If an exception occurs in C#, the exception class name and error message are placed in the Error object in the server script to raise an exception. ## Usage example The following example deletes a specified file in the web server. ##### JavaScript ``` $ps.file.removeFile('01_develop', 'parts/01_parts.txt'); ``` ## Supported versions |Supported versions|Body| |:--|:--| |1.4.12.0 and later|Added function| ## Related Information <div id="ManualList"><ul><li><a href="/en/manual/script-json">Set Parameter: Script.json</a><span>10.02.2024 up</span></li></ul></article> <ul><li><a href="/en/manual/table-management-server-script">Table Management: Server Script</a><span>08.13.2024 up</span></li></ul></article></div><input id="SearchTextHidden" type="hidden" value="" />
TOP
このページをシェアする
記載された商品名、各製品名は各社の登録商標または商標です。 © Implem Inc.