Created function which removes message to deleted box