FVSDK_ERROR_CODE FVSDK_RemoveFile(FVSDK_Session* pSession, LPCTSTR pszPathName);
This function deletes the file specified by pszPathName.
pSession
A pointer to the FVSDK_Session that is to perform the operation.
pszPathName
The full path name to the file to be deleted.
FVSDK_YES if the file was successfully deleted; FVSDK_NO if the file could not be deleted. Error codes can be found in FVSDK_ErrorCodes.h.
// remove the file
if (FVSDK_RemoveFile(pSession, "/pub/file.txt") != FVSDK_YES)
AfxMessageBox("Unable to delete the file.");