DeleteBackup
You can use the DeleteBackup method of the IIsComputer object to delete a metabase backup from a backup location.
Syntax
IIsComputer.DeleteBackup BackupLocation, BackupVersion
Parameters
-
BackupLocation
-
A string of up to 100 characters that specifies the backup location. If an empty string is specified, the backup will be deleted from the default location.
-
BackupVersion
-
Specifies the version number of the backup to be deleted from the backup location, or may be the following constant.
MD_BACKUP_HIGHEST_VERSION |
Delete the highest existing backup version in the specified backup location. |
Code Example
<%
Dim ComputerObj
Set ComputerObj = GetObject("IIS://LocalHost")
' Delete version 1 backup
ComputerObj.DeleteBackup "MyBackups", 1
%>
See Also
Backup, EnumBackups, Restore
© 1997 by Microsoft Corporation. All rights reserved.