<< Back


FVSDK_RemoveFile

Synopsis

FVSDK_ERROR_CODE FVSDK_RemoveFile(FVSDK_Session* pSession, LPCTSTR pszPathName);

Description

This function deletes the file specified by pszPathName.

Parameters

pSession

A pointer to the FVSDK_Session that is to perform the operation.

pszPathName

The full path name to the file to be deleted.

Return Value

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.

Example

// remove the file
if (FVSDK_RemoveFile(pSession, "/pub/file.txt") != FVSDK_YES)
    AfxMessageBox("Unable to delete the file.");