INtime SDK Help
INtime SDK v7.1 > About INtime > INtime Kernel > Files > RemoveRtFile

Deletes a file from its medium.

BOOLEAN RemoveRtFile(
    LPSTR lpFileName);


The name of the file to be removed.


If an application attempts to delete a file that does not exist, the DeleteRtFile RemoveRtFile function fails with E_FNEXIST.

If the file is a read-only file, the function fails with E_FACCESS. If a file is currently open then the deletion does not actually take place until the file is closed (the file handle is deleted).

To delete an empty directory, use the RemoveRtDirectory function.

Return values

TRUE on success. FALSE on failure. Possible failures include the following (returned from GetLastRtError()):


Versions Defined in Include Link to
INtime 6.0 intime/rt/include/rtbase.h rt.h rt.lib

See Also