### Overview

Endpoint is used for deleting product image.

In order to do that, you must:

- Be authenticated user

For information on how you can authenticate, see: [Authentication](https://developer.sellercloud.com/dev-article/authentication/)

As soon as you do authentication and receive a valid token, it needs to be send in the next call to the API.

### Endpoint

Example for such endpoint for TT server is

[https://tt.api.sellercloud.com/rest/api/ProductImage/1](https://tt.api.sellercloud.com/rest/api/ProductImage/1)

For your server endpoint will be:

_**https://{your_server_id}.api.sellercloud.com/rest/api/ProductImage/{id}**_

### Request

- Method Type: **HttpDelete**
- Authorization: Use **Bearer Token** \+ token received from token authentication
- Header info: **Content-Type: application/json**
- Body data:

|     |     |     |     |
| --- | --- | --- | --- |
| **Parameter** | **Data Type** | **Description** | **Is Required** |
| id | int | ID of the image | Yes |

### Response

- If server error appears, then response will be with status code 500 => Internal Server Error
- If image is deleted successful, response will be status code 200 => Ok

### Demo in C#

```
string token = "test_token";
string url = $"http://cwa.api.sellercloud.com/api/ProductImage/1";

using (var client = new HttpClient())
            {
                client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token);

await client.SendAsync(request);
            }
```
