Take the 2-minute tour ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

I'm running on a restricted machine space/memory where I have to remove all un-needed modules.

Is it considered safe to uninstall core optional unused modules?.

modules like: Book, Forum, etc.

share|improve this question
2  
Of course, if you're not using a module you can uninstall it but that will do nothing for your disk space (except maybe a tiny amount of space in the db). Even if you delete the files (which will make updating a real pain) you're only going to free up a couple of hundred k at the most. The gain might not be worth the effort needed to maintain it later on –  Clive Dec 16 '12 at 11:34
    
Good point, I havent thought of the updates. thanks –  saadlulu Dec 16 '12 at 11:58
add comment

1 Answer 1

up vote 9 down vote accepted

Yes it's safe to remove them. But I would recommend you not doing so. These modules are just tiny modules and it won't give more than 1 MB of space to your system.

However, if you are no longer using a module, make sure you have uninstalled that module. If you had search module enabled and if you are no longer using it, disabling it and uninstalling it will clear existing search index and now you could get a lot of database space saved.

If saving every bit of the space is worth, look at your third party libraries. They often come with folders such as docs and examples in it that actually do not help in terms of the site functionality.

Other places that you might want to check include, log folders (Apache logs), SSH command logs, old backups from Backup and Migrate module (or other backups), obsolete caches (Admin > Configuration > Development > Performance > Clear All Caches -- this will clear all caches, including in-use ones), watchdog (Administer > Reports > DB Log > Clear), spam comments (Admin > Content > Comments > Unapproved).

Make sure you keep a backup of the system for your own safety!

share|improve this answer
2  
+1 for performing a backup of the system BEFORE performing any of the above :) –  Mario Awad Dec 18 '12 at 18:04
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.