I've opened a bug report and I'm working on it. While I'm solving it, may I ask you if you really need to remove the resource-adapter and why?
You could leave it there and just call :activate again on it to reapply its configs. You should be able to edit it too.
It's definitely a bug, and I'm going to solve it, but asking because maybe you are doing a redundant operation.
regards
S.