how about 
```ruby
Setting.delete_all(:category=>'#{e.to_s.match(/\'(Setting::.*)\'\./)[1]}') to recover.
```