To remove an agent in the previous Oracle OEM Cloud Control 12c versions, you first had to delete its targets, stop the agent, and remove the host target. Only then were you able to remove the agent. In version 12.1.0.4, the decommission agent feature has been greatly improved.

From the agent menu, you select the new feature Agent Decommission:

ag1

The agent must be in stopped status to be decommissioned:

ag2

ag3

It shows the targets which will be removed.

ag4

In a very short time, the targets are delete, and the agent is removed.

The agent decommissioning feature is just a little new feature, but this will greatly simplify the agent emoval procedure :=)