Delete data only when it's not used by another page

So, I got a page that has a data type that has some stuff inside of it (Code, Description, Price) that the User can create, and I have another page that uses all of these things, I got a delete button that the User can use, but I want them to delete the data type from the first page only when it is not being used by the second page.

Is it possible, and if so, how?

This topic was automatically closed after 70 days. New replies are no longer allowed.