Link Doctype on list action

Hi,
Is there any built-in function to link two Doctypes that if one (primary) Doctype is deleted, other (secondary) is also deleted?
Thank you