> For the complete documentation index, see [llms.txt](https://zendevx.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://zendevx.gitbook.io/docs/actions-the-power-within/untitled/condition-and-loop/delete-check.md).

# Delete Check

When build any kind of complex business application like ERP there will arise a need to check if the record that the use of the application is trying to delete has any dependent records added or not before deleting the concerned record.

*For example is user is trying to delete a State from StateMaster table there would be a need to first check if there are any cities entered in the CityMaster table which is related to the State being delete.*

In such situations use this powerful functionality to check for existence of dependent records.

![](https://2445524190-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M_LKN8sx9rUwRZIqIu7%2F-M_y4ZzEy0G8hrVBufa6%2F-M_y77Smk2naEk1cWFT5%2F12.05_Actions_Conditions_%26_Loop_Delete_Check.png?alt=media\&token=b9a4617a-f78b-4c6f-a252-59bea3fba14c)

Rest of the features are similar to the IF...THEN...ELSE action so please refer to it.
