How to delete and archive tasks