< Back

Remove-AzureRmStorageQueueMessage

Sat Jan 11, 2020 10:50 am

NAME Remove-AzureRmStorageQueueMessage



SYNOPSIS

Deletes a message from the queue.





SYNTAX

Remove-AzureRmStorageQueueMessage -queue <AzureStorageQueue> -message <Object> [<CommonParameters>]



Remove-AzureRmStorageQueueMessage -queue <AzureStorageQueue> -messageId <String> -popReceipt <String>

[<CommonParameters>]





DESCRIPTION

Deletes a message from the queue.





PARAMETERS

-queue <AzureStorageQueue>

Name of the queue to delete the message.



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-message <Object>

CloudQueueMessage message to delete.



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-messageId <String>

Message ID of the message to delete.



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-popReceipt <String>

popReceipt value of the message to delete.



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? 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).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\># removing by using CloudQueueMessage object



Remove-AzureRmStorageQueueMessage -queue $queue -message $message



# removing by using CloudQueueMessage object

Remove-AzureRmStorageQueueMessage -queue $queue -messageId $message.Id -popReceipt $message.popReceipt











RELATED LINKS