API Delete Memory

API Documentation home

Quick Example

curl -X DELETE -H "MMT-ApiKey:<your_api_key>" https://api.modernmt.com/memories/5 | python -mjson.tool
    "status": 200,
    "data": {
        "id": 5,
        "key": "mk_f4932hg205vh7h20h05g72",
        "name": "memoryName",
        "description": "memoryDescription",
        "externalId": null,
        "creationDate": "2017-10-13T13:32:34+00:00"


This method deletes the specified memory from the ModernMT server with all its content. The specified Memory must be owned by the user specified in the MMT-ApiKey header used in the HTTP Request.

If the current User was not linked to the passed Memory, this API returns an HTTP ERROR 404:

    "error": {
        "message": "Requested resource not found",
        "type": "NotFoundException"
    "status": 404

If the MMT-ApiKey header is missing or invalid, this API returns an HTTP ERROR 401:

    "error": {
        "message":"Missing or invalid authentication header"

Resource URL


Request Fields

None. The memory identifier is specified directly in the URL. Note: the identifier can be:

  • the id of the MMT Memory that this ServiceApi Memory refers to (example: 5);
  • the MMT Memory Key (example: mk_f4932hg205vh7h20h05g72);

Response Fields

Name Description
id The ModernMT Memory id for this Memory.

Example: 5
key The MMT Memory key for this Memory.

Example: mk_f4932hg205vh7h20h05g72
externalId Private parameter for internal use only
name The name with which the user is linked to the memory.

Example: BeautifulMemory
description The description with which the user is linked to the memory.

Example: My most precious memories
creationDate A timestamp marking the instant that the Memory was created. It refers to the creation of the Memory, and not to the moment when the User was linked to it.

Example: 2017-10-13T13:32:34+00:00