I have a 'Setup' view and associated controller which I use to configure the database and web.config of an MVC site immediately after cloning the site from source control.
Once it's been run once, I want to prevent the code in my 'Setup' controller method from ever being run again.
Would programmatically deleting the 'Setup' view at the end of my 'Setup' controller method suffice, or is there a better approach?