Faizan, When ever the GraphicsLayer is added to the map give it a name and id that way you can find it just like you would any other map layer by using map.getLayer.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.