delete and archive task