Remove-SPOMigrationJob
Cmdlet to remove a previously created migration job from the specified site collection.
Syntax
Remove-SPOMigrationJob
[-TargetWebUrl] <String>
[-JobId] <Guid>
-Credentials <CredentialCmdletPipeBind>
[-NoLogFile]
[<CommonParameters>]
Description
Cmdlet to remove a previously created migration job from the specified site collection.
Examples
-----------------------EXAMPLE-----------------------------
Remove-SPOMigrationJob -JobId 4da9e777-3e38-4804-96d9-ddeebe7dfa79 -TargetUrl https://contoso.sharepoint.com/sites/TargetSite
This example removes the specified migration job from the site collection "https://contoso.sharepoint.com/sites/TargetSite".
Parameters
-Credentials
Optional credentials of a site collection administrator to use to connect to the site collection. The credentials should supply the username in UPN format (e.g. [email protected]). If this property is not set, the current tenant admin credentials from the session's previous call to Connect-SPOService
will be used to connect to the site collection.
Type: | CredentialCmdletPipeBind |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-JobId
Id of a previously created migration job that exists on the target site collection.
Type: | Guid |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-NoLogFile
Indicates to not create a log file. The default is to create a new DeleteMigrationJob log file within the current directory.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-TargetWebUrl
The fully qualified URL of the site collection where the job will be deleted if found.
Type: | String |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
Inputs
None
Outputs
System.Object