...
This compliant solution uses the Microsoft Windows SHGetKnownFolderPath()
API to get the current user's "My Documents
" folder folder, which is then combined with the file name to create the path to the file to be deleted. The file is then removed using the DeleteFile()
API.
...