How to delete all WebDriverAgent files - XCode

I’ve been trying to setup appium on my Mac to automate on real iOS devices and in the process I believe I have messed up WebDriverAgent.xcodeproj because it fails to build with multiple errors. Is there a way to completely all delete all files/folders in /node_modules/appium/node_mules…/WedDriverAgent, and start fresh?

I’ve tried npm uninstall appium -g and then reinstalling, but the files are not deleted.

why you did not try to uninstall appium and delete appium folder from mode_modules?