How to delete data from my custom doctypes on company transaction delete option?

I have custom doctypes in my custom app. When I delete all record’s from company delete transaction, I want to delete data from my custom doctypes too. How can I do it?

I found a doctype Transaction Deletion Record where found deleted doctypes list. Is there any way I can add my custom doctypes here?

Hi @Cross_X,

I think, you can’t add the custom doctype in Transaction Deletion Record.

but you can delete the record using a query if you want.

Please the post and sub post.

Thank You!

If you want to ensure that your custom doctype data is deleted using a delete transaction, you must add a company link field to your custom doctype. This field must have a company value associated with it. That way, when you delete the transaction, your custom doctype transaction will also be deleted.