# Delete

`DELETE /workspaces/:workspace/artifacts/:artifact_id/versions/:version_id/content/:path`

Delete a file or directory

**Required Scopes:** `ARTIFACT_MANAGE`

## URL Parameters

```typescript
interface URLParameters {
  /** The human-readable ID of the workspace */
  workspace: string; // Example: "my-company"
  /** The Artifact ID */
  artifact_id: string; // Example: "x5169jL2"
  /** The Version ID */
  version_id: string; // Example: "a9f84k2L"
  /** Path to the file or directory to delete */
  path: string; // Example: "src/components"
}
```

## Response Example

**Status:** `204 File or directory deleted successfully`


---
Original source: https://buddy.works/docs/api/artifacts/versions/content/delete