GET delete

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

Resource URL

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

Performance

The WineEngine 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://wineengine.tineye.com/<company>/rest/delete/?filepath=1.jpg"

or

curl https://wineengine.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.3,
        "time_total": 4.64
    }
}

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.91
    }
}

XML (success)

<?xml version="1.0" encoding="utf-8"?>
<data>
    <method>delete</method>
    <status>ok</status>
    <error/>
    <result/>
    <stats>
        <time_delete>4.3</time_delete>
        <time_total>4.64</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.91</time_total>
    </stats>
</data>