[TECHNICAL REQUEST] ]LPS-37945 DM - When a folder is removed, it's workflowDefinitionLink is left in the db

Based on LPS-35029