Edit: Of course you need to be at least at R80 on the management side in order to have the mgmt api/cli. If you want to execute the below commands directly on the cli you need to add "mgmt_cli " in front of the command. You can simply use them 1:1 as mentioned (with the changed filter expression) should you want to execute them from the SmartConsole "Command Line".
> show objects filter "1.2.3.4"
from: 1
to: 3
total: 3
objects:
- uid: "42e9d144-afe7-4d9e-88dc-f027e2ca92e6"
name: "All_Internet"
type: "address-range"
domain:
uid: "41e821a0-3720-11e3-aa6e-0800200c9fde"
name: "SMC User"
domain-type: "domain"
ipv4-address-first: "0.0.0.0"
ipv4-address-last: "255.255.255.255"
- uid: "d5fe59ca-268a-423c-8941-d21af54f5f7e"
name: "Testhost1"
type: "host"
domain:
uid: "41e821a0-3720-11e3-aa6e-0800200c9fde"
name: "SMC User"
domain-type: "domain"
ipv4-address: "1.2.3.4"
- uid: "0d11ab6d-f3d1-4a66-a771-ca3a861a3bd2"
name: "Testhost2"
type: "host"
domain:
uid: "41e821a0-3720-11e3-aa6e-0800200c9fde"
name: "SMC User"
domain-type: "domain"
ipv4-address: "1.2.3.4"
Replace the filter argument "1.2.3.4" with the IP of your duplicated object. Once you have the result take note of the related UID of the entry that you want to delete. Afterwards execute the related delete command; e.g.:
delete host uid d5fe59ca-268a-423c-8941-d21af54f5f7e
Note: If the object is not one of the type "host" you need to change the related delete command respectively.