---
title: "SetImagesOptions"
slug: "api/basket/types/setimagesoptions"
sidebar:
  order: 409
---

<a id="ref-8edd705aa5c4"></a>
<a id="ref-ec6ece3d12fb"></a>

## Synopsis

```text
struct SetImagesOptions
{
    boolean? resetExisting; // attribute
    boolean? deleteAfterImport; // attribute
}
```

Both options default to `false`. `resetExisting` clears all tagged item images on each referenced basket item before the new images are set; article images and images in user-defined columns are not affected. `deleteAfterImport` requests deletion of imported image files after the images have been set. The session must have permission to delete each file, normally limited to files uploaded by a client of the current session. A final deletion failure is logged and does not fail the operation.
