def delete_index(index_name: str, marqo_config: config.Config = Depends(get_config)):
    """
    Delete an index. Please refer to
    [Delete index API document](https://docs.marqo.ai/latest/reference/api/indexes/delete-index/) for details.
    """
    tensor_search.delete_index(index_name=index_name, config=marqo_config)
    return JSONResponse(content={"acknowledged": True}, status_code=200)

    Delete an index. Please refer to
    [Delete index API document](https://docs.marqo.ai/latest/reference/api/indexes/delete-index/) for details.
    
src/marqo/tensor_search/api.py