Blog

How to delete a module from Vtiger CRM

Posted by : Leo T Abraham on 13 November, 2013

Here I am showing an example of how to delete a module named as testModule from Vtiger 5.0.4.

Simply deleting the files from modules folder associated with a particular module won't delete it completely. But deleting the files is also required. The best way to realize that is, try to reinstall the module, you will get the message that the module exists. In order to delete a module follow the steps given below.

Create a file named delete_testModule.php and put it in the root directory of Vtiger CRM.

Paste the following code into that file delete_testModule.php:

<?php
    $Vtiger_Utils_Log = true;
    include_once('vtlib/Vtiger/Module.php');
    $module = Vtiger_Module::getInstance('testModule');
    if($module)
    {
        $module->delete();
    }
?>

Execute the file delete_testModule.php. Once it is done delete the files associated with the testModule from modules folder in the root directory.

user image
TomesSl
wow, awesome article post.Really looking forward to read more. Really Great.
user image
canary wharf
Wow, awesome post.Really thank you! Much obliged.
user image
canary wharf
Thanks again for the blog post.Really looking forward to read more. Really Cool.
user image
maillot psg pas cher
Many thanks for an amazing publish, may read your particular others posts. thank you your thinking on this, I soon became a lttle bit made an impact to by this article. Thanks again! You earn a good time. Has wonderful data here. I believe if more people thought of it doing this, they’d possess a better time period receive the hold ofing the matter. maillot psg pas cher http://maillotpsgpascher.oursland.org/
user image
bottes ugg enfant
Very good website! I genuinely really like how it is simple on my eyes and the knowledge are nicely composed.I am asking yourself how I may well be notified when a new submit has been made.I've subscribed to your RSS feed which should do the trick! Have a good day! bottes ugg enfant http://bottes-ugg-enfant.northcoastparks.com