changes to enable download samples and delete TL engine records when workflow is deleted