@cli.register_custom_action('<STR_LIT>', ('<STR_LIT>', '<STR_LIT>',<EOL>'<STR_LIT>'))<EOL><INDENT>@exc.on_http_error(exc.GitlabDeleteError)<EOL>def delete(self, file_path, branch, commit_message, **kwargs):<DEDENT>
path = '<STR_LIT>' % (self.path, file_path.replace('<STR_LIT:/>', '<STR_LIT>'))<EOL>data = {'<STR_LIT>': branch, '<STR_LIT>': commit_message}<EOL>self.gitlab.http_delete(path, query_data=data, **kwargs)<EOL>
Delete a file on the server.

        Args:
            file_path (str): Path of the file to remove
            branch (str): Branch from which the file will be removed
            commit_message (str): Commit message for the deletion
            **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