The IMSAdminBase::DeleteBackup method deletes a metabase backup from a backup location.
HRESULT DeleteBackup(
LPCWSTR pszMDBackupLocation,
DWORD dwMDVersion
);
MD_BACKUP_HIGHEST_VERSION | Delete the highest existing backup version in the specified backup location. |
Returns an HRESULT that contains one of the following values, or any error from the file system converted to an HRESULT.
Value | Description |
---|---|
ERROR_INVALID_NAME | Specified name is invalid. |
ERROR_NOT_ENOUGH_MEMORY | Insufficient memory to perform the operation. |
ERROR_SUCCESS | The method succeeded. |