DeleteFile Method (ItemFile)
- Last UpdatedNov 06, 2025
- 1 minute read
The DeleteFile() method removes the specified file from the item. It does not delete the file from the file system.
Parameters
- filePath
- Required. Holds the file path and name of the file to be removed from the item.
- modID
- Required. Holds a mod ID value to avoid data contention. If it is specified, the passed value must match the mod ID value in the database for the update to succeed.
| Exception | Description |
|---|---|
| System.Exception | Thrown if an error occurs while deleting the file from the database. |