AdsDeleteFile
Deletes a file under the connection data directory (local or remote).
Harbour-style name: oads_FErase (see Server filesystem).
Syntax
UNSIGNED32 AdsDeleteFile(ADSHANDLE hConnect, UNSIGNED8 *pucName);
Parameters
| Parameter | Type | Description |
|---|---|---|
hConnect |
ADSHANDLE |
Connection handle (0 = default). |
pucName |
UNSIGNED8* |
Relative path of the file to delete. |
Return Value
AE_SUCCESS (0). AE_NO_FILE_FOUND (5018) if missing. AE_ACCESS_DENIED if remote file functions are disabled or the path escapes the jail.
Description
Does not delete directories (use AdsDirRemove). Remote delete requires EnableFileFunc=1 on openads_serverd.
Example
AdsDeleteFile(hConn, (UNSIGNED8*)"inbox/old.txt");