# Remove Data Rowアクティビティは一度に複数行を削除できないのでしょうか？

**URL:** <https://forum.uipath.com/t/remove-data-row/569041>\
**Category:** フォーラム\
**Created:** [August 2, 2023, 8:09am UTC](https://forum.uipath.com/t/remove-data-row/569041 "2023-08-02T08:09:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gorby](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/gorby/32/543563_2.png) [@gorby](https://forum.uipath.com/u/gorby)\
**Post date:** [August 2, 2023, 8:09am UTC](https://forum.uipath.com/t/remove-data-row/569041/1 "2023-08-02T08:09:26Z")

</div>

UiPath Studio 2023.6.1 Community Editionを利用中の初心者です。

Remove Data Rowアクティビティは一度に複数行を削除できないという認識ですが合っていますか？  
もしこの認識が誤りの場合、0始まりで、0,2,3行を一度に削除する方法をご教示ください。  
アクティビティでできない場合は構文でもOKです。

---

<div class="post-metadata">

**Author:** ![Yoichi](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/yoichi/32/523754_2.png) [@Yoichi](https://forum.uipath.com/u/Yoichi)\
**Post date:** [August 2, 2023, 8:16am UTC](https://forum.uipath.com/t/remove-data-row/569041/2 "2023-08-02T08:16:11Z")

</div>

こんにちは

> [@gorby](#):
>
> Remove Data Rowアクティビティは一度に複数行を削除できないという認識ですが合っていますか？

あっています。

> アクティビティでできない場合は構文でもOKです。

以下お試しください。

```
dt = dt.AsEnumerable.Where(Function(r,i) not {0,2,3}.Contains(i) ).CopyToDataTable

```

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/system/32/182466_2.png) [@system](https://forum.uipath.com/u/system)\
**Post date:** [August 5, 2023, 8:16am UTC](https://forum.uipath.com/t/remove-data-row/569041/3 "2023-08-05T08:16:17Z")

</div>

Closed on August 5, 2023, 8:16am UTC

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
