<div dir="ltr">Hi everyone,<div><br></div><div>So - its a "popular topic" why deleting records in vtiger does not slim down the db.</div><div><br></div><div>If i also remove via recycle-bin, then the "vtiger_crmentity" table gets reduced, but the associated tables (ie. contacts or whatever) does not. </div><div><br></div><div>I've read that that SHOULD happen using constraints / Foreign Keys, but it does not happen here.</div><div><br></div><div>So, my question is two-fold:</div><div><br></div><div>1) Is the constraints/FK solution working for you guys</div><div><br></div><div>2) If yes, do you have some input on how to set it up?</div><div><br></div><div>if not, then i am not sure what to do - perhaps write a php script that will take all vtiger_crmentity with deleted=1 and remove in the other tables?</div><div><br></div><div>Thanks :)</div><div><br></div><div>Best,</div><div>Chris</div></div>