GET delete

Given a list of file paths, delete the associated images from the collection.

Resource URL

https://mobileengine.tineye.com/<company>/rest/delete/

Performance

The MobileEngine API can perform one add, update or delete request at a time. Any extra requests submitted will be queued up for processing as slots become available.

Each request accepts maximum 10 filepaths.

Parameters

In addition to the Common parameters there is:

Filepath

Key

Description

filepath

A file path (as returned by the list operation) which we want to delete.

Filepaths

Key

Description

filepaths[0]

A file path which we want to delete.

filepaths[n] (optional)

A file path which we want to delete.

Request example

curl -X DELETE "https://mobileengine.tineye.com/<company>/rest/delete/?filepath=1.jpg"

or

curl https://mobileengine.tineye.com/<company>/rest/delete/   \
     -d "filepaths[0]=path/folder/1.jpg"                      \
     -d "filepaths[1]=path/folder/2.jpg"                      \
     -d "filepaths[2]=path/folder/3.jpg"                      \
     -d "filepaths[3]=path/folder/4.jpg"

Response examples

JSON (success)

{
    "method": "delete",
    "status": "ok",
    "error": [],
    "result": [],
    "stats": {
        "time_delete": 4.86,
        "time_total": 5.2
    }
}

JSON (failure)

{
    "method": "delete",
    "status": "fail",
    "error": [
        "1.jpg: This file does not exist in the image collection"
    ],
    "result": [],
    "stats": {
        "time_delete": 0,
        "time_total": 4.96
    }
}

XML (success)

<?xml version="1.0" encoding="utf-8"?>
<data>
    <method>delete</method>
    <status>ok</status>
    <error/>
    <result/>
    <stats>
        <time_delete>4.86</time_delete>
        <time_total>5.2</time_total>
    </stats>
</data>

XML (failure)

<?xml version="1.0" encoding="utf-8"?>
<data>
    <method>delete</method>
    <status>fail</status>
    <error>
        <item>1.jpg: This file does not exist in the image collection</item>
    </error>
    <result/>
    <stats>
        <time_delete>0</time_delete>
        <time_total>4.96</time_total>
    </stats>
</data>