< Back

Remove-DynDnsRecord

Sat Jan 18, 2020 8:16 pm

NAME Remove-DynDnsRecord



SYNOPSIS

The command Remove-DynDnsRecord deletes one or all records of the specified type from a specified zone/node.





SYNTAX

Remove-DynDnsRecord [-DynDnsRecord] <DynDnsRecord[]> [-Confirm] [-WhatIf] [<CommonParameters>]





DESCRIPTION

The command Remove-DynDnsRecord deletes one or all records of the specified type from a specified zone/node.





PARAMETERS

-Confirm [<SwitchParameter>]

Prompts you for confirmation before running the command.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-DynDnsRecord <DynDnsRecord[]>

One or more DNS records retrieved by the command Get-DynDnsRecord.



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]

Shows what would happen if the command runs. The command is not run.



Required? false

Position? named

Default value False

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

DynDnsRecord[]







OUTPUTS

None







NOTES









-------------------------- Example 1 --------------------------



PS C:\\> Get-DynDnsRecord -RecordType A -Node newtest | Remove-DynDnsRecord





Address : 216.146.46.11

Zone : anovelidea.org

Name : newtest.anovelidea.org

Type : A

TTL : 60





Confirm

Are you sure you want to perform this action?

Performing the operation "Delete DNS A record" on target "newtest.anovelidea.org".

[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): y

Address : 216.146.46.10

Zone : anovelidea.org

Name : newtest.anovelidea.org

Type : A

TTL : 60





Confirm

Are you sure you want to perform this action?

Performing the operation "Delete DNS A record" on target "newtest.anovelidea.org".

[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): n



Retrieve all A records for the node newtest.anovelidea.org and delete the first record.



RELATED LINKS

Online Version: https://powershell.anovelidea.org/modul ... ecord.html

Get-DynDnsRecord https://powershell.anovelidea.org/modul ... ecord.html

Add-DynDnsRecord https://powershell.anovelidea.org/modul ... ecord.html

Update-DynDnsRecord https://powershell.anovelidea.org/modul ... ecord.html

Delete A Records (API) https://help.dyn.com/delete-a-records-api/

Delete CNAME Records (API) https://help.dyn.com/delete-cname-records-api/

Delete MX Records (API) https://help.dyn.com/delete-mx-records-api/

Delete PTR Records (API) https://help.dyn.com/delete-ptr-records-api/

Delete SRV Records (API) https://help.dyn.com/delete-srv-records-api/

Delete TXT Records (API) https://help.dyn.com/delete-txt-records-api/