memories.delete, by data.delete, and by memories.forget, including a forget approved in the dashboard. A document hidden by a data.delete call comes back with its memories when you restore that call’s deletion_id. A permanent delete has no restore.
Restoring needs the same key permissions as deleting, and reaches only the memories of your key’s instance.
Parameters
The
deletion_id of a data.delete result: restores every memory that call hid. Conversations, their turns and summaries, the profile and source text that call removed do not come back.Returns
Not found in this instance, not deleted, or past the purge date. This is a result, not an error.
A store that could not be brought back in line (for example
graph). The memory is restored either way.Only when you restore by
deletion_id and that delete also hid documents: how many documents came back, with the memories made from them (document_memories_restored). If a document could not be restored, still_missing_in names documents.Raises
InvalidInputError: neither or both ofmemory_idsanddeletion_id, an empty list, more than 200 ids, or an empty id. Checked before any request is sent.AuthenticationError: the key is missing or invalid (401), or not allowed to delete (403).