How to remove entire Craft CMS folder? or rather uninstall it I have to reinstall it because i f'up by changing "localhost" to "mysite.dev" on the installation page.
To delete craft, all you need to do is delete the craft/app folder, so you don't lose all your templates/plugins etc. That said, this won't affect your site url as siteUrl stored in the database.

Here are a few options:


You would need to go into the database under the table craft_info and then change siteUrl back to localhost or whatever you need it to be.
If you have only just gone through the installation page then you can just delete the database and start again.


My most preferred thing to do to avoid these sort of issues is to set the siteUrl within a config file and simply reference it.

For example in craft/config/general.php you would have:

return array(
 '*' =&gt; array(
   'environmentVariables' =&gt; array(
     'siteUrl' =&gt; 'localhost'
   )
 ),
 '.com' =&gt; array(
   'environmentVariables' =&gt; array(
     'siteUrl' =&gt; 'http://somedomain.com'
   )
 )
);


So basically here we are setting the siteUrl config within a wildcard config using * which means it gets applied to all environments.

Straight after we are then overriding the siteUrl config for just .com domains.

See Multi environment config and Multi environment variables 

The beauty of this is now when you install Craft (or change siteUrl in the database) you only need to put {siteUrl} within the input and Craft will automatically fetch the value from your config file, based on your environment.

Hope that helps!