← Back to All 28+ Guides / Product Architecture
PRODUCT ARCHITECTURE • 5 MIN READ

Trash-First Safety Architecture: Why XrayMac Never Permanently Destroys Data

Accidentally deleting a file is stressful. Learn how XrayMac's Trash-first architecture guarantees full undo capability through native macOS Trash.

Published: 2026-09-12 By XrayMac Engineering 100% Native Swift

A primary concern users have with disk cleaning software is: "What if the utility deletes something I actually need?"

Some aggressive tools execute permanent Unix rm -rf commands behind the scenes. Once a file is deleted with rm, it is removed from the filesystem table and cannot be recovered without specialized data recovery tools.

The Safe Trash-First Standard

XrayMac never performs permanent file deletions without explicit user consent. When you clean caches, remove duplicates, or uninstall leftover application files, they are safely routed to Apple's native NSFileManager.trashItem(at:resultingItemURL:) API.

This places files into your macOS Trash. If you ever change your mind, simply open Trash, right-click the item, and choose Put Back to return it immediately to its exact original location.

Free To Download

Experience Fast, Native Mac Storage

Download XrayMac for free. Inspect your storage, visualize disk hogs, and explore your drives with 100% on-device privacy. Optional upgrades can be activated anytime directly within the app if you ever need them.