zhongjiajie opened a new issue #6418: URL: https://github.com/apache/dolphinscheduler/issues/6418
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened 1.At the beginning, I create a workflow as below  2.After click the `save` button, I check the database.  3.And then I delete task named `delete`, and save workflow again.  4.I go to database and check records again, and found out task `delete` still in our database  ### What you expected to happen I think it should remove database record when task not exists in the workflow anymore. If deleted task still in the database, the size of table `t_ds_task_definition` is too big for us. ### How to reproduce Please see section **what happend** ### Anything else _No response_ ### Are you willing to submit PR? - [ ] 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) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
