18

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.

user471317
  • 1,141
  • 2
  • 20
  • 34

3 Answers3

30

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

rfcdejong
  • 1,933
  • 1
  • 22
  • 47
  • 1
    Thanks. I thought deleting appdata works only for CE edition. A question - if I delete the appdata folder, but not the database tables from the sql server, what happens in that scenario? – user471317 May 10 '12 at 23:41
  • Then the database will still exist but the site won't point to it. If you want to point to the same DB, just zap all the tables from there before setup. – Bertrand Le Roy May 11 '12 at 02:06
  • You can also leave the database as it is and just use a different prefix. Very useful to create a new site quickly during module developpment, as it does not matter if your dev database contains a few now useless tables, and it's quicker that wiping out the database. – Falanwe May 11 '12 at 08:43
1

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!

Moses Machua
  • 9,544
  • 3
  • 29
  • 46
0

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.

Falanwe
  • 4,445
  • 20
  • 37