---
title: "deleteFile"
canonical: "https://help.vicon.com/space/ShogunPost121/1253737211/deleteFile"
format: markdown
---
Deletes a file from the file system.

Paths must use forward slashes instead of back-slashes.

If the file cannot be deleted for some reason, the command fails. Note that the file is not moved to the recycle bin, but is permanently deleted.

## Functional area

System

# Command syntax

## Syntax

> Macro (scroll-tablelayout)

|  |
| --- |
| `deleteFile "filePath"` |

### Arguments

| Name | Type | Required | Comments |
| --- | --- | --- | --- |
| `filePath` | string | yes | Full path to the file you want to delete. Be sure to use forward slashes. |

### Flags

None

## Return value

void

## Examples

```plaintext
// Delete a c3d file from the disk
deleteFile "D:/SomeProduct/CaptureDay1/Session1/00001.c3d";
```