How to remove unneeded package from OpenEmbedded image?

What is the procedure to remove unneeded packages from rootfs in a OpenEmbedded image?
And what I have to do in case of packages dependencies?

Dear @gvnn,

Greetings and Thank you for contacting Toradex Community!

You can remove the packages using IMAGE_INSTALL_remove += "<Package>". All the dependent packages associated with the package will be removed; unless a package is also associated with another remaining package. In that case, the dependent package will remain.

Best Regards,

Janani.