Prevent the deletion used items

does it prevent the deletion of an account, for example, if it is used on some invoice, order, etc.? Can I ask for advice?
Thank you.

Sorry, SuiteCRM does not prevent deletions just because there are related records. It would be too complicated in many occasions, you would want to delete something but you would be forced to work through dozens of related items first…

If you really need to check I think you could use a before_delete logic_hook, but that involves coding and I’m not sure it’s possible for the hook to prevent the deletion…