Remove-SmJob

Detailed Description

The Remove-SmJob cmdlet marks a Simply Migrate Job with a Deleted status.  This will remove the job from your statistical overview of the project, however jobs in this status will still impact license usage.

Syntax

Remove-SmJob [[-JobId] <int[]>] [-Job <JobHistory[]>] [-Force]  [<CommonParameters>]

Parameters

    -Force
        Use Force to skip any confirmation prompts

        Required?                    false
        Position?                    Named
        Accept pipeline input?       false
        Parameter set name           (All)
        Aliases                      None
        Dynamic?                     false

    -Job <JobHistory[]>
        Pass job via pipeline

        Required?                    false
        Position?                    Named
        Accept pipeline input?       true (ByValue)
        Parameter set name           (All)
        Aliases                      None
        Dynamic?                     false

    -JobId <int[]>
        Specify JobId(s)

        Required?                    false
        Position?                    0
        Accept pipeline input?       false
        Parameter set name           (All)
        Aliases                      None
        Dynamic?                     false

    <CommonParameters>
        This cmdlet supports the common parameters: Verbose, Debug,
        ErrorAction, ErrorVariable, WarningAction, WarningVariable,
        OutBuffer, PipelineVariable, and OutVariable. For more information, see
        about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).

Examples

Remove-SmJob is used to mark Simply Migrate Jobs as Deleted and remove them from your statistical overview..
An example how to remove jobs;
In this example we will be removing jobs with the JobId’s 1, 2, 6 and 1.  this will cause a confirmation prompt for each job.

PS C:Simply Migrate> Remove-SmJob 1,2,6,11

To avoid confirmation prompts, add the -Force parameter as shown here;

PS C:Simply Migrate> Remove-SmJob 1,2,6,11 -Force