def delete_slide(presentation, index):
    """Delete a slide from Presentation."""
    rid = presentation.slides._sldIdLst[index].rId
    presentation.part.drop_rel(rid)
    del presentation.slides._sldIdLst[index]
