Hi Ozge,
Thank you for your suggestion. I tried this, but unfortunaltely it didn't work. The workflow instances weren't being deleted.
I partially solved it by making a dummy account, and in Workflow Manage Task Assignments page, assigned and targeted all tasks to this dummy account.