# DestroyBatch(ReadOnlySpan<PhysicsJoint>)

> Destroy a batch of joints. Owned joints will produce a warning and will not be destroyed (see PhysicsJoint.SetOwner ). Any invalid joints will be ignored.

## Definition

* **Type:** Method
* **Namespace:** [Unity.U2D.Physics](/engine/6000.5/script-reference/unity/u2d/physics.md)
* **Assembly:** UnityEngine.PhysicsCore2DModule

```csharp
public static void DestroyBatch(ReadOnlySpan<PhysicsJoint> joints)
```

### Parameters

**** (\[ReadOnlySpan\<PhysicsJoint>]\(https\://learn.microsoft.com/dotnet/api/system.readonlyspan-1)): The joints to destroy.
