It should work (NRF.setServices({}) should do too) - but you need to disconnect from BLE and reconnect for it to take effect.
The Nordic BLE stack doesn't let you remove services, so Espruino has to shut down and restart all of BLE to do it - it can't be done while you're connected so it waits until you have disconnected.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
It should work (
NRF.setServices({})
should do too) - but you need to disconnect from BLE and reconnect for it to take effect.The Nordic BLE stack doesn't let you remove services, so Espruino has to shut down and restart all of BLE to do it - it can't be done while you're connected so it waits until you have disconnected.