async def METHOD_NAME(req: Request):
    """
    Delete an index.
    Deletes the index with the given id and reset history relating to that index.
    """
    index_id = req.match_info["index_id"]
    try:
        await get_data_from_req(req).index.delete(index_id)
    except ResourceNotFoundError:
        raise NotFound(f"There is no index with id: {index_id}.")
    raise HTTPNoContent