### Search before asking - [x] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Currently, referential integrity checks are missing when deleting data sources, which may cause scheduled tasks to fail. <img width="2386" height="1118" alt="Image" src="https://github.com/user-attachments/assets/0b9102d6-6748-452c-ae50-ad2424d012d4" /> ### Are you willing to submit a PR? - [x] Yes I am willing to submit a PR! ### Code of Conduct - [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)