'Abdicate approved submitter status in a subreddit.
See also: [/api/friend](#POST_api_friend).'

@require_oauth2_scope('modself')
@noresponse(VUser(), VModhash(), container=VByName('id'))
@api_doc(api_section.moderation)
def POST_leavecontributor(self, container):

    if (container and container.is_contributor(c.user)):
        container.remove_contributor(c.user)
