messages: implement batch-delete function

closes #119