<div dir="ltr"><div>Hi to all,</div>   we have a vTiger instance that contains a high number of custom modules on which we import, through php scripts, a high number of data including attachments.<br>   We therefore need to cancel the following types of data when importing data and / or through scheduled activities:<br><div>- Records of custom modules<br></div>- Attachments to the records of the previous point (including associated files on disk)<br>- Contain the number of records of the change history (if active on the module). For example, keep the last 10 changes for each single entity.<br><br>We can delete it directly using db query ($adb->query("DELETE FROM xxx");) but I think that there is a correct way, using the vtlib or similar, to delete the three types of data, or not?<br>I tried to search but find nothing about it.<br>Has anyone had a similar need?<br><br><div>Thanks in advance,</div><div>Tiziano</div><div><br></div></div>