Sometimes PC needs a restart so upon doing that and opening VS code after restarting and then deleting the file, It works!!