First, delete all the pages in your sitetree that are using the Gallery data classes. Then delete the module directory from your server, and run a dev/build. that should rename all of your gallery tables to "_obsolete_[table_name]".