---
title: recycleOperation
framework: appkit
role: symbol
role_heading: Type Property
path: appkit/nsworkspace/fileoperationname/recycleoperation
---

# recycleOperation

Move file to trash.

## Declaration

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

## Discussion

Discussion The file is moved to the trash folder on the volume containing the file using the same semantics as 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.

## See Also

### Type Properties

- [compressOperation](appkit/nsworkspace/fileoperationname/compressoperation.md)
- [copyOperation](appkit/nsworkspace/fileoperationname/copyoperation.md)
- [decompressOperation](appkit/nsworkspace/fileoperationname/decompressoperation.md)
- [decryptOperation](appkit/nsworkspace/fileoperationname/decryptoperation.md)
- [destroyOperation](appkit/nsworkspace/fileoperationname/destroyoperation.md)
- [duplicateOperation](appkit/nsworkspace/fileoperationname/duplicateoperation.md)
- [encryptOperation](appkit/nsworkspace/fileoperationname/encryptoperation.md)
- [linkOperation](appkit/nsworkspace/fileoperationname/linkoperation.md)
- [moveOperation](appkit/nsworkspace/fileoperationname/moveoperation.md)
