---
name: "detach"
type: command
status: ok
groups: ["Object Manipulation"]
arma3_since: "0.50"
locality: {"argument": "global", "effect": "global", "server_exec": false}
source: https://community.bistudio.com/wiki/detach
revid: 369227
updated: 2024-09-03T10:34:55Z
---

# detach

*Command · Object Manipulation · Arma 3 v0.50 · introduced in Arma 2 v1.00*

Locality: arguments **global** · effect **global**

## Description

Detaches previously attached with [attachTo](../commands/attachTo.md) object.

## Syntax

```sqf
detach object
```

**Parameters:**

- `object`: [Object](../topics/Object.md)

**Returns:** [Nothing](../topics/Nothing.md)

## Examples

### Example 1

```sqf
obj1 attachTo [player];
detach obj1;
```

## Multiplayer

Only has to be executed on one client.

## See also

[attachedObjects](../commands/attachedObjects.md) · [attachedTo](../commands/attachedTo.md) · [attachTo](../commands/attachTo.md)

<sub>Source: [BI Community Wiki — detach](https://community.bistudio.com/wiki/detach) (revision 369227).</sub>
