Clear-CMMigrationData

Deletes historical data about a data migration operation.

Syntax

Clear-CMMigrationData
     [-Confirm]
     [-DisableWildcardHandling]
     [-Force]
     [-ForceWildcardHandling]
     -SourceSiteCode <String>
     [-WhatIf]
     [<CommonParameters>]

Description

The Clear-CMMigrationData cmdlet deletes the historical data about a data migration operation. With Microsoft System Center Configuration Manager, you can migrate data from a supported Configuration Manager hierarchy to a System Center Configuration Manager environment. When you migrate data from a source hierarchy, you access data from the site databases that you identify in the source infrastructure and then transfer that data to your current environment from the database of the destination hierarchy. Clear-CMMigrationData cleans up the historical data from the destination hierarchy database.

Examples

Example 1: Clean up historical data from a migration

PS C:\>Clear-CMMigrationData -SiteCode "C04"

This command removes the historical data from the destination site that has the site code C04.

Required Parameters

-SourceSiteCode
Type:String
Aliases:SiteCode
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-DisableWildcardHandling

Indicates that wildcard handling is disabled.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Force

Forces the command to run without asking for user confirmation.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ForceWildcardHandling

Indicates that wildcard handling is enabled.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False