@sushmaa61672298,
After authoring pages, the authored component reference nodes becomes apart of the page configuration. When you delete your component from /apps, the authored pages will still be referencing to the deleted component; deleting a component from /apps will not remove referenced nodes from AEM.
so if the component is heavily used, then after deleting the component from /apps, you will be left with a lot of exceptions in the error.log, because the reference cannot be found.
A simple way to remove component reference nodes from authored pages will be to write a custom servlet that will find and remove all unwanted reference nodes.
I hope this helps.