How to delete failed tasks?

maybe this thread is of any help?