---
title: "terminatePods() | Grafana k6 documentation"
description: "xk6-disruptor: ServiceDisruptor.terminatePods method"
---

> For a curated documentation index, see [llms.txt](/llms.txt). For the complete documentation index, see [llms-full.txt](/llms-full.txt).

# terminatePods()

`terminatePods` terminates a number of pods that belong to the service specified in the ServiceDisruptor.

Expand table

| Parameter | Type   | Description                                                                                                                                          |
|-----------|--------|------------------------------------------------------------------------------------------------------------------------------------------------------|
| fault     | object | description of the [Pod Termination fault](/docs/k6/latest/testing-guides/injecting-faults-with-xk6-disruptor/xk6-disruptor/faults/pod-termination/) |

## Example

JavaScript ![Copy code to clipboard](/media/images/icons/icon-copy-small-2.svg) Copy

```javascript
const fault = {
  count: 2,
};
disruptor.terminatePods(fault);
```
