OEMCC Delete Targets

To delete Agent and all monitored targets...

cd /u01/app/em134/bin

./emcli login -username="myuser"

You will be prompted for your password

./emcli sync

./emcli get_targets -targets="oracle_emd"

To help get agent name and port for the next step

./emcli delete_target -name="myhost:mydomain:3872" -type="oracle_emd" -delete_monitored_targets -async

Bibliography


https://aodba.com/remove-target-oracle-enterprise-manager-using-gui/https://dbalifeeasy.com/2020/04/25/most-useful-emcli-commands-in-oem-cloud-control-13c/
https://support.oracle.comEM 12c, EM 13c: How to Delete Agent and Targets Using emcli with the delete_target Verb in Enterprise Manager Cloud Control (Doc ID 1459204.1)EM12c, EM13c: How to Delete a Target in Enterprise Manager Cloud Control (Doc ID 1905181.1)