Removing NativeScript from a Capacitor 8.x app is just removing files — nothing was ever changed in your Xcode project, so there is nothing to restore:
npm uninstall @nativescript/capacitor- Delete
src/nativescript/andsrc/native-custom.d.ts(or archive them for later) - Remove the
build:nativescriptandcapacitor:copy:beforescripts from yourpackage.json npx cap sync
:::tip v5 note
The v5 uninstall-nativescript.js restore script is no longer needed — it existed to undo v5's Xcode project modifications, and 8.x never makes any.
:::
If anything doesn't clean up as expected, let us know here.