General X++ Development

What is the difference between `delete()` and `doDelete()` in X++?

Asked by Sunny Vasty· Aug 13, 2026· 1 answers

What is the difference between delete() and doDelete() in X++?

SSunny Vasty75 reputation · answered Aug 13, 2026

Same idea as update:

  • delete() uses the normal table delete path.
  • doDelete() bypasses the table's overridden delete() method and related event handling.

Use delete() unless you know exactly why you need to bypass table logic.

A delete that "worked" but skipped cleanup or business rules is usually worse than a delete that failed.