Updated Delete api to check workflow run status before sending error when active workflow runs present.