How can i remove not used entities