---
title: "delete"
canonical: "https://help.vicon.com/space/ShogunPost121/1253736748/delete"
format: markdown
---
# Description

This command deletes any objects in the scene, including items that do not visually exist in the 3D views (such as constraints and solvers). The command can be used to delete the entire scene, selected objects only, or only the primary selection of a group of selected objects. When combined with other commands like those used for determining selected objects based on pre-determined criteria, delete can be used to permanently clear scenes of unnecessary objects.

## Functional area

Data editing

# Command syntax

## Syntax

> Macro (scroll-tablelayout)

|  |
| --- |
| `delete [-all] [-primary]` |

### Arguments

None

### Flags

| Name | Flag arguments | Argument type | Exclusive to | Comments |
| --- | --- | --- | --- | --- |
| `all` | 0 | — | primary | Deletes all objects |
| `primary` | 0 | — | all | Deletes only the primary object |

## Return value

void

## Examples

```plaintext
// Delete all BoneNode objects in the scene
selectByType BoneNode;
delete;
```