Remove CosmosDbAccount - PlagueHO/CosmosDB GitHub Wiki
Delete a Cosmos DB account from Azure.
Remove-CosmosDbAccount [-Name] <String> [-ResourceGroupName] <String> [-AsJob] [-Force] [-WhatIf] [-Confirm]
[<CommonParameters>]
Use to delete an Azure Cosmos DB account from a resource group.
PS C:\> Remove-CosmosDbAccount -Name 'MyCosmosDBAccount' -ResourceGroupName 'MyResourceGroup'
Delete the Cosmos DB account named 'MyCosmosDBAccount' from the resource group 'MyResourceGroup'.
Remove the resource in the background. The function will return immediately with a Job object that can be used to query the state of the job.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
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
Forces the deletion of the Cosmos DB account with out confirming with the user.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The name of the Cosmos DB account to delete.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The name of the resource group containing the Cosmos DB account to delete.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
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
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).