# How to Return IDs with Delete

**URL:** <https://forum.weaviate.io/t/how-to-return-ids-with-delete/803>\
**Category:** Support\
**Created:** [October 10, 2023, 4:19pm UTC](https://forum.weaviate.io/t/how-to-return-ids-with-delete/803 "2023-10-10T16:19:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adam\_Hughes](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/adam_hughes/32/124_2.png) [@Adam\_Hughes](https://forum.weaviate.io/u/Adam_Hughes)\
**Post date:** [October 10, 2023, 4:19pm UTC](https://forum.weaviate.io/t/how-to-return-ids-with-delete/803/1 "2023-10-10T16:19:18Z")

</div>

In the [docs](https://weaviate.io/developers/weaviate/manage-data/delete#dry-run), you show that the ID is returned upon deletes for objects if the output is of type `verbose`

```auto
result = (
    client.batch.delete_objects(
        class_name='EphemeralObject',
        # Same `where` filter as in the GraphQL API
        where={
            'path': ['name'],
            'operator': 'Like',
            'valueText': 'EphemeralObject*'
        },
        dry_run=True,
        output='verbose'
    )
)

import json
print(json.dumps(result, indent=2))

```

I don’t need all of this output, only the IDs of the listed objects. Is there any way to return just the IDs without the additional verbose output. Something like:

```
.with_additional('id') 

```

That is compatible with delete operation?

---

<div class="post-metadata">

**Author:** ![DudaNogueira](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dudanogueira/32/7846_2.png) [@DudaNogueira](https://forum.weaviate.io/u/DudaNogueira)\
**Post date:** [October 12, 2023, 6:50am UTC](https://forum.weaviate.io/t/how-to-return-ids-with-delete/803/2 "2023-10-12T06:50:29Z")

</div>

Hi!

I have looked into the code for the client, and there is not:

> <https://github.com/weaviate/weaviate-python-client/blob/c760b1d59b2a222e770d53cc257b1bf993a0a592/weaviate/batch/crud_batch.py#L1240>

You will have to process the output and reduce it to IDs only

Let me know if that helps!

Thanks!
