How I can remove an item before adding to the diagram, that is, being contained

How I can remove an item before adding to the diagram, that is, being contained