Hello priyacha,
Thank you for using the Apple Support Communities. I understand you're seeing 2 GB of storage used by your Safari app, and I'm glad to help.
To clarify, where on your Mac are you seeing this reported? Also, which Mac model and macOS version are you running? You can check your version by clicking Apple menu () > About This Mac.
It sounds like you've already clicked Safari > Clear History and have removed all history and website data; is that right? Clear your browsing history in Safari on Mac
Are you using Safari in iCloud? You can check by clicking Apple menu () > iCloud.
I hope this helps get you started.
Kind regards.