Remove-​Azure​Managed​Cache

Removes an Azure Cache.

Syntax

Remove-AzureManagedCache
      [-Force]
      -Name <String>
      [-PassThru]
      [-Profile <AzureSMProfile>]
      [<CommonParameters>]

Description

The Remove-AzureManagedCache cmdlet removes an Azure Cache and all of the data in the Cache. It returns $True if the operation was successful and $False if it failed. By default, Remove-AzureManagedCache will prompt you for confirmation before it removes the Azure Cache, but you can use the Force parameter to suppress the prompt. An Azure Cache is a secure, dedicated cache that provides extremely fast access to data. This distributed, in-memory, scalable solution enables you to build highly scalable and responsive applications. For more information about Azure Cache, see Azure Cache (http://azure.microsoft.com/en-us/services/cache/).

Examples

Example 1: Remove an Azure Cache

PS C:\>Remove-AzureManagedCache -Name "ContosoCache"
Confirm
Are you sure you want to perform this action? 
Performing the operation "Delete" on target "ContosoCache".
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"): 
 Y

True

This command removes the Azure Cache named ContosoCache. The command prompts for confirmation before the cmdlet removes the Cache. It returns a value of $True to indicate that the Cache was removed.

Example 2: Remove all test caches

PS C:\>Get-AzureManagedCache | Where-Object Name -like Test* | Remove-AzureManagedCache -Force

This command removes all Azure Caches that have names that begin with Test. It uses the Get-AzureManagedCache cmdlet to get the Azure Caches in your account. It pipes them to the Where-Object cmdlet, which returns only the Azure Caches that have names that begin with Test. Then, it pipes the test caches to the Remove-AzureManagedCache cmdlet with the Force parameter, which removes them without prompting for confirmation.

Required Parameters

-Name

Specifies the name of the Azure Cache to remove. The parameter value is case-sensitive. Wildcard characters are not permitted.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Optional Parameters

-Force

Forces the command to run without asking for user confirmation.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PassThru

Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Profile

Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.

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

Inputs

None

Outputs

System.Boolean

Notes