Remove all inactive tasks