# Does anyone know how to initiate a batch reset in python?

**URL:** <https://community.temporal.io/t/does-anyone-know-how-to-initiate-a-batch-reset-in-python/12863>\
**Category:** Community Support\
**Tags:** python-sdk\
**Created:** [July 17, 2024, 8:43pm UTC](https://community.temporal.io/t/does-anyone-know-how-to-initiate-a-batch-reset-in-python/12863 "2024-07-17T20:43:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bbemis](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@bbemis](https://community.temporal.io/u/bbemis)\
**Post date:** [July 17, 2024, 8:43pm UTC](https://community.temporal.io/t/does-anyone-know-how-to-initiate-a-batch-reset-in-python/12863/1 "2024-07-17T20:43:05Z")

</div>

Hi,

Does anyone know or have documentation on how to initiate a batch reset in python for temporal?

I’ve been looking over the python documentation and it’s not immediately obvious to me. But I know the CLI is able to do it in golang so it seems like it’s possible

Thank you

---

<div class="post-metadata">

**Author:** ![Chad\_Retz](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/chad_retz/32/1396_2.png) [@Chad\_Retz](https://community.temporal.io/u/Chad_Retz)\
**Post date:** [July 17, 2024, 9:18pm UTC](https://community.temporal.io/t/does-anyone-know-how-to-initiate-a-batch-reset-in-python/12863/2 "2024-07-17T21:18:29Z")

</div>

This would require using the Temporal gRPC API directly. It would be something like `await my_client.workflow_service.start_batch_operation(temporalio.api.workflowservice.v1.StartBatchOperationRequest(**some_other_fields, reset_operation=temporalio.api.batch.v1.BatchOperationReset(**some_fields))`. You can look at the [API protos](https://github.com/temporalio/api) to understand all the fields needed, and you can look at the [CLI source](https://github.com/temporalio/cli/blob/8d56e1b024cb12f58beac0d3fea204d1f3644b02/temporalcli/commands.workflow_reset.go#L134) to see how it does batch reset. There are no samples for this API because it is advanced and usually not recommended for direct use. You can of course always execute the CLI from Python code which may be easier.
