Pending orders can automatically delete themselves after some time, for that check the expiration settings. But you want to delete them when something happens. Well, you probably know that there is a block "Delete pending orders", so you need to make it run when you want. I don't know what is that targeted take profit level, but with "Condition" block you can compare 2 levels very easily.