add safety check around workflow deletion