'Delete messages from the recipient\'s view of their inbox.'

@require_oauth2_scope('privatemessages')
@noresponse(VUser(), VModhash(), thing=VByName('id'))
@api_doc(api_section.messages)
def POST_del_msg(self, thing):

    if (not thing):
        return
    if (not isinstance(thing, Message)):
        return
    if (thing.to_id != c.user._id):
        return
    thing.del_on_recipient = True
    thing._commit()
    g.events.message_event(thing, event_type='ss.delete_message', request=request, context=c)
