When I go to /featuremodules.aspx, then to /Admin/ModuleDefinitions.aspx and try to delete feature module that is currently used on some pages of the portal, an exception is thrown.
Need some code to deal with this situation - either automatically delete it from all the pages or say "cannot delete because ...".