Can't remove multi-site

Can't remove multi-site

13 posts / 0 new
Last post
stephen@capellic.com's picture
stephen
Points: 0
Can't remove multi-site

I added a multi-site called "test." Now I want to delete it. There doesn't appear to be any way to delete it from the Dev Desktop interface. I deleted sites/test and sites/test.local, but that didn't help. I also removed the test DB manually, and that didn't help, either. I closed and re-opened Dev Desktop and that didn't help.

Status: 
Unresolved
dustin@singlebrook.com's picture
dustin
Points: 0

I Second Stephen, Dev Desktop 2 has been great thus far in my testing and the ability to super quickly add a multisite is a real treat. The ability to remove them just as easily would be a welcome addition. I went one further and removed the vhost entry from the apache config folder and it is still listing the multisite.

kgertz's picture
k.gertz
Points: 0

I had the same problem - I wanted to delete a site within a multisite installation as I wanted to move it to another drupal installation within Dev Desktop. I manually carried out the same steps as you did (here on Mac OS X):

  1. deleted the site folder and the site.local alias
  2. deleted the database
  3. deleted the site's entry in /etc/hosts
  4. deleted the site's vhost in the apache configuration

but the site was still showing up in the DevDesktop control panel - and: when i tried to import the site in the other installation, I got an error saying: "Something went wrong: a site with this hostname already exists." That was quite annoying. Well after a while I found what did the trick in addition to the steps above:

  1. Go to Applications - Dev Desktop
  2. [CTRL] - click Acquia Dev Desktop and select "Show package contents"
  3. Go to Contents - MacOS
  4. Open "datamodel.xml", find the item describing the site you want to delete, remove that section and save the file.

Done - the site you deleted does not show up any more. But yes, I agree that the ability to remove sites easily would really be appreciated.

Chris Brookins's picture
chris
Points: 21

We will add a feature to delete a multi-site from Dev Desktop in a future build, but this a good tip in the meanwhile

Status Change: 
Pending Bug Fix
Chris Brookins's picture
chris
Points: 21

This is now resolved in the latest version of Dev Desktop 2 - you can delete sites or individual multi-sites.
see acquia.com/downloads

Status Change: 
Resolved (feature request)
cfm4n@eservices.virginia.edu's picture
cfm4n
Points: 0

The database and file/directory deletion does occur now in DevDesktop2, but in a multisite it's still holding on the the deleted site names, but puts an * beside the name in the multisite drop down menu. This is going to drive me nuts - is there any way to get rid of that site name with the *? (screenshot attached)

Thanks!

chris.brookins@acquia.com's picture
chris.brookins
Points: 116

In the current build (April 3 on acquia.com/downloads) when you click - to delete, it deletes the selected multi-site. e.g. see this screenshot (where you click No) - after completing the next prompt the site is fully deleted.
https://www.evernote.com/l/AAXQElzPLYBDnLQYKaKRjF2IZt1Hfwgu85g

cfm4n@eservices.virginia.edu's picture
cfm4n
Points: 0

Thanks for responding, Chris. Your process above is definitely what I did; select 'No' because I didn't want the entire multisite deleted, just the single site. You can see in my screenshot from the last post that I have two asterisked sites; both of those are completely gone from the local file system, no .dd files exist, and no db's exist. I checked the local hosts file as well, they don't exist. But the site names still remain in my dropmenu in dev desktop.

Should I try an uninstall/install of dev desktop?

Thanks!

memcinto's picture
memcinto
Points: 0

Similar problem, dev desktop:
Acquia Dev Desktop
Version: 2
Built: Jul 27 2015 04:10:29
Control panel rev: 032976b
Stack rev: 58529

Mac OS X.

Tried to import a new site; never pushed to Cloud. Had to give up and then tried to get rid of the site. Tried everything in this thread and in https://plus.google.com/+KaiGertz/posts/Yj7GqnuDnM5. Site still appears asterisked in the local site list. When you try to remove it, you get the error message

Something is wrong
MySQL Error:Incorrect database name ''

No site folder. No database (obviously). Nothing in /etc/hosts. Nothing in the apache configuration. No xxlocal.inc file in ~/.acquia/DevDesktop/DrupalSettings. Nothing in ~/.acquia/DevDesktop/Drush/Aliases. Nothing in "datamodel.xml"

Margrit McIntosh
University of Arizona

ipaulsen@instructure.com's picture
ipaulsen
Points: 0

I was also experiencing issues with the * and the name of the multi site not going away. I removed it by:
Deleting my site locally.
SSH into your dev Acquia folder.
cd to the folder sites where your unwanted multi site folder is.
rm it
then clone the site from the cloud back to local via devdesktop.
done.

sculptor@eyevolver.com's picture
sculptor
Points: 2

This is still a problem in Desktop 2. Even after deleting the entire multisites (devcloud:xxxx locally) and SSH to Cloud and rm -R the folders from the /dev folder, when I clone the Dev Cloud back down the "Multiple sites found" dialog opens and is still showing the deleted test sites from my local machine. I looked at my Databases listing on the Cloud Dev environment and it only lists my default and 2nd multisite databases.

Status Change: 
Unresolved
cfm4n's picture
cfm4n
Points: 0

Sculptor, are you using a Mac? We have found that the only way to have a deleted site completely disappear from the Dev Desktop list (in a multisite environment) is to:
1) click the "-" to remove the site (this only removes the local database & files folder.
2) Using Finder, delete your site directory
3) Close Dev Desktop
4) In Finder, browser to Applications/DevDesktop; right click on the Acquia Dev Desktop app and select 'Show Package Contents'; browse to Contents/MacOs.
5) Open datamodel.xml, and find the site you want deleted. Delete the code from to for that site, then save.

When you reopen DevDesktop, your site should be completely removed from the list. Hope this does the trick for you!

sculptor@eyevolver.com's picture
sculptor
Points: 2

cfm4n, Thanks and yes, using a Mac. When "-" is used (I delete every site, not just the temp), the complete folder structure is removed from ~/Sites/devdesktop so step 2 didn't seem applicable. In step 4, the offending sites were not in the datamodel. However, when I reopened DD2, I SSHed (clicked on the "SSH to this server" button to the right of the SSH: URL for those new to DD2) to devcloud and those directories were there, so I removed them from the /dev directory. I shutdown DD2 and relaunched. Again, when cloning locally, these temp sites keep showing up in the "Multiple sites found" dialog. I thinking these multiple sites have to be in the devcloud configuration file(s) somewhere and I just can't find them.

Status Change: 
Unresolved