Developer forum

Forum » Rapido » Delete the master website

Delete the master website

Gaetan Di Caro
Reply

Hi everyone,

If I only need one of the wrap website I want to delete all the others because they are unnecessary. I can delete all of them fine, except the "Master" one, where I don't have the option. I can exclude it but not delete it.

I'm probably missing something obvious, but how can I get to delete it ? I've looked around the website settings and the management center, but I can't seem to find anything.

Thanks !


Replies

 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer

Hi Gaetan

Yes, DW does not like to get the master website deleted.

  1. Delete all other websites than the one you want (and master) - that leaves you 2 websites (master and the one to keep)
  2. Go to management center, database, SQL firehos
  3. Run this Query "DELETE FROM Paragraph WHERE ParagraphPageID IN(SELECT PageID FROM Page WHERE PageAreaID=1) " (Deletes all paragraphs from the master)
  4. Then run "DELETE FROM Page WHERE PageAreaID=1" (Deletes all pages from the master)
  5. Finally run "UPDATE Page SET PageAreaID=1" (Moves all your pages from the website you want to keep to the now empty master website)
  6. Run the frontend with ?refresh=yes
  7. Go to websites administration and delete the website you wanted to keep - it now has no pages and is not used for anything.

OK, weird approach, but it works...

BR Nicolai

Votes for this answer: 1
 
Gaetan Di Caro
Reply

Seems to have worked, thanks !

Although one thing to be careful is to copy the value of most columns in the Area table (especially [AreaItemId]), to keep all the settings.

 

You must be logged in to post in the forum