Delete module from vTiger

Uninstall/Delete Module Script
To uninstall the module from vTiger Follow the steps below:

Step 1: Delete Module code

 

<?php
include_once(‘vtlib/vtiger/module.php’);

/*
* delete a module
*/
$module = vtiger_module::getinstance(‘SMSTemplates’);
if($module)
{
// delete from system
$module->delete();
echo “Module deleted!”;
} else {
echo “module was not found and could not be deleted!”;
}

?>

 

Step 2: Delete module Folders

Module folders and files needs to be deleted manually from vtiger module. Following are the location where its references exists.

modules/ModuleName
languages/en_us/ModuleName.php
languages/…/ModuleName.php
layouts/vlayout/modules/ModuleName
cron/ModuleName
Step 3: Delete Data
Module stores data in the database-table, you may want to delete / truncate the same.

Step 4 : Run the PHP code

Save the php code in php file vtiger root folder, run in php code like http://vtiger.com/filename.php

how can we help you?

Contact us at the Consulting office nearest to you or submit a business inquiry online.

see our gallery

Looking for a First-Class Business Plan Consultant?