While creating a custom module if you gave the wrong module name, When you try to run any terminal command you will get an error like
There are no commands defined in the “setup” namespace
Now I understand the solution from one of the answer in this question.But when I try to change the module again, I am always end up in the same error even after I update everything Or I also tried removing other files. If I keep the registration.php it shows error If I delete the registration file, it works. How can I use the same module again.