Update delete mailing function

It closes #12