IMSAdminBase::DeleteBackup

The IMSAdminBase::DeleteBackup method deletes a metabase backup from a backup location.

HRESULT DeleteBackup(
      LPCWSTR pszMDBackupLocation,
      DWORD dwMDVersion
);

Parameters

  • pszMDBackupLocation
    A string of up to MD_BACKUP_MAX_LEN Unicode characters that identifies the backup location.

  • dwMDVersion
    Specifies the version number of the backup to be deleted from the backup location, or can be the following constant:

    Constant

    Description

    MD_BACKUP_HIGHEST_VERSION

    Delete the highest existing backup version in the specified backup location.

Return Values

Returns an HRESULT that contains one of the following values, or any error from the file system converted to an HRESULT.

Value

Description

HRESULT_FROM_WIN32(ERROR_INVALID_NAME)

Specified name is invalid.

HRESULT_FROM_WIN32(ERROR_NOT_ENOUGH_MEMORY)

Insufficient memory to perform the operation.

S_OK

The method succeeded.

Requirements

Client: Requires Windows XP Professional, Windows 2000 Professional, or Windows NT Workstation 4.0.

Server: Requires Windows Server 2003, Windows 2000 Server, or Windows NT Server 4.0.

Product: IIS

Header: Declared in iadmw.h; include iiscnfg.h.