def format_delete_docs_response(marqo_response: MqDeleteDocsResponse) -> dict:
    """This formats the delete response for users """
    return {
        "index_name": marqo_response.index_name, "status": marqo_response.status_string,
        "type": "documentDeletion",
        "items": marqo_response.result_list,
        "details": {
            "receivedDocumentIds": len(marqo_response.document_ids),
            "deletedDocuments": marqo_response.deleted_documents_count,
        },
        "duration": utils.create_duration_string(marqo_response.deletion_end - marqo_response.deletion_start),
        "startedAt": utils.format_timestamp(marqo_response.deletion_start),
        "finishedAt": utils.format_timestamp(marqo_response.deletion_end),
    }
This formats the delete response for users 
src/marqo/tensor_search/delete_docs.py