Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Windows Powershell Command to Delete an Entry

Posted on 2016-10-20
3
Medium Priority
?
86 Views
Last Modified: 2016-10-20
Hello Expers

I have entered the following command in powershell

$AdatumRs=New-AzureRmDnsRecordSet -Name "www" -RecordType "A" -ZoneName "adatum.com" -ResourceGroupName "AdatumRG" -Ttl 60

Can someone let me how to rollback that command or delete it?

Cheers

Carlton
0
Comment
Question by:Member_2_7966113
  • 2
3 Comments
 
LVL 40

Accepted Solution

by:
Subsun earned 2000 total points
ID: 41852037
Use Remove-AzureRmDnsRecordSet

Ref : https://msdn.microsoft.com/en-us/library/mt619425.aspx

Remove-AzureRmDnsRecordSet -Name "www" -RecordType "A" -ZoneName "adatum.com" -ResourceGroupName "AdatumRG"

Open in new window

0
 
LVL 1

Author Closing Comment

by:Member_2_7966113
ID: 41852636
Thanks again mate
0
 
LVL 40

Expert Comment

by:Subsun
ID: 41852799
You are welcome!
0

Featured Post

Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
A recent project that involved parsing Tableau Desktop and Server log files to extract reusable user queries for use in other systems. I chose to use PowerShell to gather the data, and SharePoint to present it...
Loops Section Overview
Screencast - Getting to Know the Pipeline

824 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question