<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def delete(self, id, **kwargs):
 """Delete an object on the server. Args: id: ID of the object to delete **kwargs: Extra options to send to the server (e.g. sudo) Raises: GitlabAuthenticationError: If authentication is not correct GitlabDeleteError: If the server cannot perform the request """

        if id is None:
            path = self.path
        else:
            if not isinstance(id, int):
                id = id.replace('/', '%2F')
            path = '%s/%s' % (self.path, id)
        self.gitlab.http_delete(path, **kwargs)