Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Remove-AzureStorageBlob

Remove-AzureStorageBlob

microsoft.windowsazure.commands.storage.dll

Synopsis

Remove the specified azure storage blob.

Syntax

Remove-AzureStorageBlob [-Blob] [-Container] [-DeleteSnapshot] [-Force] [-PassThru] [-Context] [-ServerTimeoutPerRequest] [-ClientTimeoutPerRequest] [-ConcurrentTaskCount] [-WhatIf] [-Confirm] [<CommonParameters>]

Remove-AzureStorageBlob [-ICloudBlob] [-DeleteSnapshot] [-Force] [-PassThru] [-Context] [-ServerTimeoutPerRequest] [-ClientTimeoutPerRequest] [-ConcurrentTaskCount] [-WhatIf] [-Confirm] [<CommonParameters>]

Remove-AzureStorageBlob [-CloudBlobContainer] [-Blob] [-DeleteSnapshot] [-Force] [-PassThru] [-Context] [-ServerTimeoutPerRequest] [-ClientTimeoutPerRequest] [-ConcurrentTaskCount] [-WhatIf] [-Confirm] [<CommonParameters>]

Detailed Description

Remove the specified azure storage blob.

Parameters

-Blob <String>

Blob name.

Aliases

None

Required?

true

Position

0

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-Container <String>

Container name.

Aliases

None

Required?

true

Position

1

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-DeleteSnapshot <SwitchParameter>

Only delete blob snapshots.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-Force <SwitchParameter>

Force to remove the blob and its snapshot without confirmation.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-PassThru <SwitchParameter>

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-Context <AzureStorageContext>

Azure Storage Context. You can create it by New-AzureStorageContext cmdlet.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-ServerTimeoutPerRequest <Nullable`1[Int32]>

Server side time out for each request.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-ClientTimeoutPerRequest <Nullable`1[Int32]>

Client side time out for each request.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-ConcurrentTaskCount <Nullable`1[Int32]>

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-WhatIf <SwitchParameter>

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-Confirm <SwitchParameter>

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-ICloudBlob <ICloudBlob>

ICloudBlob object from Azure Storage Client library. You can create it or use Get-AzureStorageBlob cmdlet.

Aliases

None

Required?

true

Position

named

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-CloudBlobContainer <CloudBlobContainer>

CloudBlobContainer object from Azure Storage Client library. You can create it or use Get-AzureStorageContainer cmdlet.

Aliases

None

Required?

true

Position

named

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-PipelineVariable <string>

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

Input Type


Return Type


Notes

Examples

-------------------------- Remove azure storage blob by name --------------------------

PS C:\> Remove-AzureStorageBlob -Container containername -Blob blobname

-------------------------- Remove azure storage blob using pipeline from GetAzureStorageBlob --------------------------

PS C:\> Get-AzureStorageBlob -Container containername -Blob blobname | Remove-AzureStorageBlob

-------------------------- Remove azure storage blob using pipeline from GetAzureStorageContainer --------------------------

PS C:\> Get-AzureStorageContainer container* | Remove-AzureStorageBlob blobname

Get-AzureStorageBlob
Get-AzureStorageBlobContent
Set-AzureStorageBlobContent