CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Drupal Uninstall of CiviCRM?
Pages: [1]

Author Topic: Drupal Uninstall of CiviCRM?  (Read 8005 times)

jschrab

  • Guest
Drupal Uninstall of CiviCRM?
March 05, 2009, 01:26:37 pm
I have a need to uninstall the CiviCRM modules and do not have a need to preserve the CiviCRM tables.  After disabling the module in Drupal, is it as simple as deleting the module and dropping the related tables?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Drupal Uninstall of CiviCRM?
March 05, 2009, 04:16:43 pm

yes.

if running the latest 2.2 beta (beta3 or beta4), uninstalling the module will take care of deleting the tables from the database

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Kiran Jagtap

  • Ask me questions
  • ****
  • Posts: 533
  • Karma: 51
Re: Drupal Uninstall of CiviCRM?
March 05, 2009, 10:41:41 pm
hi jschrab

also you need to remove civicrm.settings.php from [your Drupal root directory]/sites/default
If not removed, this file will not allow you to reinstall CiviCRM, though you have uninstalled.

kiran
You Are Designed To Choose... Defined By Choice.

jschrab

  • Guest
Re: Drupal Uninstall of CiviCRM?
March 06, 2009, 12:18:27 pm
Quote from: Donald Lobo on March 05, 2009, 04:16:43 pm

yes.

if running the latest 2.2 beta (beta3 or beta4), uninstalling the module will take care of deleting the tables from the database

lobo


I'm back on 2.1 and would like to start fresh.  It's no problem for me to disable/delete/drop files/db's.  So I think I got it - thanks!

CuriousGeorge

  • I’m new here
  • *
  • Posts: 12
  • Karma: 0
  • Semper et ubique gratias agere
    • Latin Mass Society
  • CiviCRM version: 4.5.6
  • CMS version: Drupal 7 (and 8!!), Wordpress 4.1.1
  • MySQL version: 5.6
  • PHP version: 5.5
Drupal, CiviCRM not removed from Modules list after uninstall
February 05, 2014, 05:55:30 am
Problem: Drupal, CiviCRM not removed from Modules list after uninstall
System: Drupal 7.26, CiviCRM 4.2, MySQL 5.5.32
Situation: Site migration, needing clean CiviCRM DB.
Desire: Dump CiviCRM DB, Update CiviCRM to current.
Process:
  • Made back-up
  • Deleted module from sites/all/modules/
  • Dumped CiviCRM DB.
  • Attempted to install CiviCRM 4.7 - Failure
  • Realised made a big mistake!  :-[
Problem: CiviCRM still appears in modules list, and installing a new module version does not work.
Things I realised: RTFM, do one process at a time, lock down the site so other admin don't do work at the same time!!

Attempted solutions:
1. reinstalling original 4.2 version, reinstalling backup CiviCRM database, activating 4.2, then deactivating, uninstalling and then deleting the file from /all/modules and removing civicrm.settings.php.
Result: fail, still appears in the modules list (after many cache flushes).

2. deleting module, deleting civicrm DB, deleting all instances of "civicrm" from the Drupal MySQL.
Result: fail, still appears in the modules list.

3. reinstalling original 4.2 version, reinstalling backup CiviCRM database, activating 4.2, then deactivating, uninstalling and then deleting the file from /all/modules and removing civicrm.settings.php. Then installing 4.4.3.
Result: "CiviCRM is already installed."

Stumped. Revert to backup?   ???
Semper et ubique gratias agere

Kebz

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
  • CiviCRM version: 4.5
  • CMS version: Drupal 7+
  • MySQL version: current
  • PHP version: current
Re: Drupal Uninstall of CiviCRM?
December 18, 2014, 12:36:49 pm
I know my answer is a bit late... LOL... but I'm a newbie on the CiviCRM forum.... but I've been working on Drupal for like a decade... but as usual, we will always learn new things everyday.

I'm sure you've figured it out by now, but just in case... here's the "manual" version that I know how to do  ;D

  • When you "disable" a module inside Drupal, you have to then click on the "uninstall" tab and select the modules you want to uninstall.
  • After that, you then have to go to your PHPAdmin for your Drupal database and find the "system" table ... click on it
  • and then search for the modules you just disabled and uninstalled.
  • once you find them, click the edit link and set the status from "1" to "0"
  • Then you go to your "/sites/all/modules" folder and delete the modules you disabled

NOTE:  Always make backups of your entire site and database BEFORE doing any of these steps.
source:  https://www.drupal.org/node/157632
phpMyAdmin

To disable a module via phpMyAdmin you must login to phpMyAdmin. Then you must locate the database where Drupal is installed. Once you have done so look for the "system" table. Click and open it. Click to browse the table. Find the record for the module that is causing the problems and select the edit function. Set the status to "0" and save.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Drupal Uninstall of CiviCRM?

This forum was archived on 2017-11-26.