I tried to uninstall datamapper using the command gem uninstall dm-core.
gem uninstall dm-core
But it seems that a whole bunch of dependent gems also need to be uninstalled.
gem cleanup should do the trick. See here for details.
gem cleanup