Skip to main content

Clear-IMQueue

SYNOPSIS​

Clears all jobs from an Immich queue

SYNTAX​

Clear-IMQueue [[-Session] <ImmichSession>] [-Name] <String> [-Force] [-ProgressAction <ActionPreference>]
[-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION​

Removes all jobs from a specific queue, including waiting, active, completed, and failed jobs. This is useful for clearing stuck jobs or resetting queue state during maintenance.

EXAMPLES​

EXAMPLE 1​

Clear-IMQueue -Name thumbnailGeneration

Clears all jobs from the thumbnail generation queue after confirmation.

EXAMPLE 2​

Clear-IMQueue -Name duplicateDetection -Confirm:$false

Clears all jobs from the duplicate detection queue without a confirmation prompt.

EXAMPLE 3​

@('faceDetection', 'facialRecognition') | Clear-IMQueue -Confirm:$false

Clears multiple queues via pipeline input.

PARAMETERS​

-Session​

Optionally define an Immich session object to use. This is useful when you are connected to more than one Immich instance.

Type: ImmichSession
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Name​

The name of the queue to clear. Required parameter. Valid queue names include: thumbnailGeneration, metadataExtraction, videoConversion, faceDetection, facialRecognition, smartSearch, duplicateDetection, backgroundTask, storageTemplateMigration, migration, search, sidecar, library, notifications, backupDatabase, ocr, workflow

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 2
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False

-Force​

Accepted for compatibility but has no effect: the queues API does not support forced clearing, so a warning is written. To skip the confirmation prompt, use -Confirm:$false.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-WhatIf​

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

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Confirm​

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ProgressAction​

{{ Fill ProgressAction Description }}

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters​

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS​

OUTPUTS​

NOTES​

This function requires admin privileges. Use with caution as cleared jobs cannot be recovered. Currently running jobs may not be immediately stopped but will not be restarted.

EDIT THIS DOC​

This page was auto-generated from PowerShell comment-based help. To edit this page, update the corresponding command help in the module source repository.