When performing an action involving Smart P&ID files (such as retrieving files, printing a drawing as a PDF file), each file is saved on the server in the \Files folder. For an example of a request that involves copying a file to this folder, see Save a drawing as PDF without applied display set and refer to the procedure Download drawing file. In the request results, the folder path and file name appear for the ‘Uri’ parameter.
By default, the software is not configured to delete these files, therefore in time, many files may accumulate in the \Files folder, taking up a large amount of space on the server. A setting in the web.config file can be used to determine whether the files in the \Files folder are deleted whenever the Smart API application is started on the server machine.
-
In the Smart P&ID Smart API installation folder, locate and open the web.config file.
-
Go to the 'ClearHistory' setting, which by default is as follows:
<add key="ClearHistory" value="false" />
This value sets the temporary files to never be deleted.
-
To change the setting to delete the files in the \Files folder whenever the Smart API application is started, do the following:
-
Change the value of the setting from 'false' to 'true'.
-
Save the web.config file.
-