From RAD Studio API Documentation
function DeleteFile(const FileName: string): Boolean;
Deletes a file from disk.
DeleteFile deletes the file named by FileName from the disk. If the file cannot be deleted or does not exist, the function returns False.
Note: DeleteFile can delete a symbolic link from a file or a directory and is the preferred method for deleting symlinks.