<div dir="ltr">The above code should delete all the database entries related to the module.However,source remains as it is,please check if you are getting any errors by debugging.In my instance it works fine.</div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Thu, Jul 24, 2014 at 3:09 PM, Mel <span dir="ltr"><<a href="mailto:m.brummell@btinternet.com" target="_blank">m.brummell@btinternet.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
Is there any way of deleting custom modules? Ideally there would be an<br>
uninstall button, but all we can do at the moment (it appears) is disable<br>
modules.<br>
<br>
I have also tried the code suggestions i.e. to create a php file with code<br>
along the lines of:<br>
<br>
include_once('vtlib/Vtiger/Module.php');<br>
<br>
/*<br>
 * Delete a module<br>
 */<br>
$module = Vtiger_Module::getInstance('MyCustomModule');<br>
if($module)<br>
{<br>
    // Delete from system<br>
    $module->delete();<br>
    echo "Module deleted!";<br>
} else {<br>
    echo "Module was not found and could not be deleted!";<br>
}<br>
<br>
But this and a slightly different piece of code didn't work for me.<br>
<br>
Am I overlooking something in Vtiger 6.1? Is there an obvious way of<br>
uninstalling custom modules?<br>
<br>
Mel<br>
<br>
_______________________________________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br>
</blockquote></div><br></div>