<!--
{
  "availability" : [
    "macOS: 10.0.0 - 10.11.0"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSWorkspace/FileOperationName/recycleOperation",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@NSWorkspaceRecycleOperation"
  },
  "title" : "recycleOperation"
}
-->

# recycleOperation

Move file to trash.

```
static let recycleOperation: NSWorkspace.FileOperationName
```

## Discussion

The file is moved to the trash folder on the volume containing the file using the same semantics as [`moveOperation`](/documentation/AppKit/NSWorkspace/FileOperationName/moveOperation). If a file with the same name currently exists in the trash folder, the new file is renamed. If no trash folder exists on the volume containing the file, the operation fails.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)