Delete Module From vtiger CRM

 

Process for Delete Module From vtiger CRM

 

For Example You want to delete a module which name id “PDFMaker”

  1.  Uninstalled module from admin Panel.
  2.  Login in putty and delete module (PDFMaker) folder from modules directory
  3. Use this command “rm -fr PDFMaker”

pic1

4. Create a file with name deletemodule.php at root of vtiger.

pic2

5. Write code in  deletemodule.php  page

<?php

$Vtiger_Utils_Log = true;

include_once(‘vtlib/Vtiger/Module.php’);

$module = Vtiger_Module::getInstance(‘PDFMaker‘);

if($module)

{

$module->delete();

}

else

{

echo “Not delete”;

}

?>

6. Now Run this page on url

7. http://xyz.com/deletemodule.php