I have created one test module and checked everything working fine.
After i have deleted that module related files. But now i follow the same procedure to activate the module but it’s not activated below error message displayed with extend controller files
“Invalid modules were detected.
Do you want to delete all registered module information and saved configurations?”
I think this message appears because of the old module settings (from the test module). You deactivated it and deleted the module files. So some settings are still available.