Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reset Orchard to look like fresh install

Tags:

orchardcms

Couple of custom modules were not working. I disabled/deleted them and tried to enable/install again. It did not work. I decided to start from scratch. So I deleted all the database tables (I am using SQL Server 2008). Is this not enough?

If I run the project, I see the directory listing for /orchardlocal/.

What else I have to do?

Thanks.

like image 752
user471317 Avatar asked May 10 '12 21:05

user471317


3 Answers

Just delete the appdata folder, just as simple. It will be a fresh install then.

like image 66
rfcdejong Avatar answered Sep 21 '22 04:09

rfcdejong


On top of deleting the App_Data folder from the Orchard.Web project, you can reset the db by deleting one table at a time or you can quickly delete all tables by running this script

USE [myorcharddb]
GO

EXEC sp_MSforeachtable @command1 = "DROP TABLE ?"

Note: All tables in the database will be dropped. You cannot undo this!

like image 30
Moses Machua Avatar answered Sep 21 '22 04:09

Moses Machua


If you're running standard Orchard, wiping out the AppData folder will do the trick.

However, it will not if you're deployed on Azure/Azure emulator. Then you have to remove the PREFIX-site "folder" (with PREFIX being the azure storage prefix for your site) from the Azure blob storage (it's not really a folder, as there are no real folder in the blob storage, but you know what I mean).

If you're testing on the Azure emulator, the quickest way to accomplish that is by resetting the blob storage from the storage Emulator UI.

like image 40
Falanwe Avatar answered Sep 21 '22 04:09

Falanwe