public function removeCommunityModerator($communityId, $userId, $accessToken)
    {
        if (!$this->apiVersionIsGreaterThanV3()) {
            throw new EndpointNotSupportedByApiVersionException();
        }

        if (!is_numeric($userId)) {
            throw new InvalidIdentifierException('user');
        }

        return $this->delete(sprintf('communities/%s/moderators/%s', $communityId, $userId), [], $accessToken);
    }
public function removeCommunityModerator($communityId, $userId, $accessToken)
    {
        if (!$this->apiVersionIsGreaterThanV3()) {
            throw new EndpointNotSupportedByApiVersionException();
        }

        if (!is_numeric($userId)) {
            throw new InvalidIdentifierException('user');
        }

        return $this->delete(sprintf('communities/%s/moderators/%s', $communityId, $userId), [], $accessToken);
    }
public function removeCommunityModerator ( $ communityId , $ userId , $ accessToken ) { if ( ! $ this -> apiVersionIsGreaterThanV3 ( ) ) { throw new EndpointNotSupportedByApiVersionException ( ) ; } if ( ! is_numeric ( $ userId ) ) { throw new InvalidIdentifierException ( 'user' ) ; } return $ this -> delete ( sprintf ( 'communities/%s/moderators/%s' , $ communityId , $ userId ) , [ ] , $ accessToken ) ; }
Remove moderator permission from a community user

@param string $communityId
@param int    $userId
@param string $accessToken
@throws EndpointNotSupportedByApiVersionException
@throws InvalidIdentifierException
@return null|array|json
Remove moderator permission from a community user