delete and archive tasks