<div dir="ltr"><div>HI</div><div><br></div><div>If your database has proper foreign key constraints, it will remove all entity data when you clear vtiger_crmentity table (i.e flush recycle bin). Eg, For accounts</div><div><br></div><div>ALTER TABLE `vtiger_account`<br>  ADD CONSTRAINT `fk_1_vtiger_account` FOREIGN KEY (`accountid`) REFERENCES `vtiger_crmentity` (`crmid`) ON DELETE CASCADE;</div><div><br></div><div>--<br>-- Constraints for table `vtiger_accountbillads`<br>--<br>ALTER TABLE `vtiger_accountbillads`<br>  ADD CONSTRAINT `fk_1_vtiger_accountbillads` FOREIGN KEY (`accountaddressid`) REFERENCES `vtiger_account` (`accountid`) ON DELETE CASCADE;<br><br>--<br>-- Constraints for table `vtiger_accountscf`<br>--<br>ALTER TABLE `vtiger_accountscf`<br>  ADD CONSTRAINT `fk_1_vtiger_accountscf` FOREIGN KEY (`accountid`) REFERENCES `vtiger_account` (`accountid`) ON DELETE CASCADE;<br><br>--<br>-- Constraints for table `vtiger_accountshipads`<br>--<br>ALTER TABLE `vtiger_accountshipads`<br>  ADD CONSTRAINT `fk_1_vtiger_accountshipads` FOREIGN KEY (`accountaddressid`) REFERENCES `vtiger_account` (`accountid`) ON DELETE CASCADE;</div><div><br></div><div>Thanks</div><div>Sutharsan Jeganathan<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jun 27, 2019 at 1:04 AM Stuart Maynard-Keene <stuartmaynardkeene@mypubgroup.ltd> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi, I have a configured install of vTiger 6.5, which over numerous years I have added functionality and custom fields to. I would like to duplicate this install to create a new version but without the existing data.<br>
<br>
By existing data, I mean leads, documents (file in /storage). I have already 'deleted' through the interface and emptied trash however the records are still in the relevant table, only flagged to 1. From a GDPR perspective this is also very suspect.<br>
<br>
I'm pretty conversant with the MySQL data structure and entity tables but I was wondering if there is a simple way to purge this data or if there is any sort of documentation out there to take on this task.<br>
<br>
Any advice would be grateful.<br>
<br>
<br>
--<br>
<br>
Cheers,<br>
Stu<br>
<br>
<br>
<br>
_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><font color="#9999ff"><i>Development Manager<br>
        Radus28 Software Solution<br>
        <img src="cid:part4.EAFD845F.485F57C8@radus28.com" title="www.radus28.com" alt="Radus28 Software Solution" width="205" height="60"><br>
        123, Level 2, Mc Larens Building<br>
        Baudhaloka Mw.<br>
        Colombo 04<br>
        Sri Lanka<br>
        M : +94773795291<br>
        E  : <a href="mailto:sutharsan@radus28.com" target="_blank">sutharsan@radus28.com</a><br>
        W : <a href="http://www.radus28.com" target="_blank">www.radus28.com</a></i></font></div></div>