@exc.on_http_error(exc.GitlabDeleteError)<EOL><INDENT>def delete(self, id, **kwargs):<DEDENT>
if id is None:<EOL><INDENT>path = self.path<EOL><DEDENT>else:<EOL><INDENT>if not isinstance(id, int):<EOL><INDENT>id = id.replace('<STR_LIT:/>', '<STR_LIT>')<EOL><DEDENT>path = '<STR_LIT>' % (self.path, id)<EOL><DEDENT>self.gitlab.http_delete(path, **kwargs)<EOL>
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