## Stop location sharing

`client.chats.location.stop(stringchatID, LocationStopParamsbody, RequestOptionsoptions?): StopChatLocationSharingResponse`

**delete** `/v3/chats/{chatId}/location`

Stop a contact's location share with you. `handle` is required and names whose
share to end.

Returns `202` when the request is accepted. The stop is carried out on the contact's
device, and the `location.sharing.stopped` webhook fires once sharing has ended.

Sharing is per contact, so this ends that contact's share in every chat you have
with them.

Returns `404` if the contact isn't currently sharing.

### Parameters

- `chatID: string`

- `body: LocationStopParams`

  - `handle: string`

    Phone number (E.164 format) or email address of the contact whose share to end

### Returns

- `StopChatLocationSharingResponse`

  - `message: string`

  - `success: boolean`

### Example

```typescript
import LinqAPIV3 from '@linqapp/sdk';

const client = new LinqAPIV3({
  apiKey: process.env['LINQ_API_V3_API_KEY'], // This is the default and can be omitted
});

const stopChatLocationSharingResponse = await client.chats.location.stop(
  '975d0776-bd17-4273-8337-f346b4c661b0',
  { handle: '+15551234567' },
);

console.log(stopChatLocationSharingResponse.message);
```

#### Response

```json
{
  "success": true,
  "message": "Location sharing stop requested"
}
```
