---
layout: default-layout
noTitleIndex: true
needAutoGenerateSidebar: true
title: How can I remove only the selected images?
keywords: Dynamic Web TWAIN, Image Editing, remove selected images, remove specific images
breadcrumbText: How can I remove only the selected images?
description: How can I remove only the selected images?
date: 2021-12-09 09:25:33 +0000
last_modified: 2024-09-19 08:47:35 +0000
---

# Image Editing

## How can I remove only the selected images?

- You can remove the selected images by first selecting the images from the buffer by using the command:

[DWTObject.SelectImages([0, 1, 2]);](/_articles/info/api/WebTwain_Buffer.md#selectimages){:target="_blank"} // This command selects the first 3 images from the buffer, you can pass the indices of the images you want to select as the argument to this method.

- As the second step, invoke the remove command to delete the selected images.

[DWTObject.RemoveAllSelectedImages();](/_articles/info/api/WebTwain_Buffer.md#removeallselectedimages){:target="_blank"} // This command will remove all the images that were selected in first step.
