macOS Error Code 8058: How to Fix It

Easy 5-15 minutes Low Severity Verified June 2026
Error Code
Error 8058
Brand
macOS
Product Type
operating_system
Severity
Low
DIY Difficulty
Easy
Estimated Fix Time
5-15 minutes
macOS Error 8058 occurs when you try to move a file to the Trash but the system cannot complete the action because the file is locked, currently in use by an application, or has permission restrictions. This error typically appears with files that are actively being used or have been corrupted.
Ad

Tools You'll Need

How to Fix Error Code Error 8058

  1. Check if file is currently open

    Make sure to save any unsaved work before closing applications.
  2. Force quit applications using the file

    Force quitting applications may cause you to lose unsaved work.
  3. Check file permissions and unlock

  4. Use Terminal to force delete

    This permanently deletes the file without sending it to Trash. Make sure you really want to delete it as this action cannot be undone.
  5. Restart your Mac

    Save all your work before restarting.
  6. Boot into Safe Mode

    Safe Mode may take longer to boot and some features may be limited.
Ad

When to Call a Professional

Contact Apple Support or a Mac technician if the file cannot be deleted even in Safe Mode, if you're getting kernel panics, or if the issue affects system files. Professional help is also recommended if you're not comfortable using Terminal commands.

Frequently Asked Questions

What does macOS Error 8058 mean?
Error 8058 in macOS means the system cannot move a file to the Trash because the file is locked, currently being used by an application, or has permission restrictions that prevent deletion.
Is it safe to use Terminal to delete files with Error 8058?
Using Terminal's rm command is safe for regular files, but it permanently deletes them without sending to Trash. Be very careful with the file path and never use this command on system files or folders you're unsure about.
Why won't my file move to Trash on Mac?
Files won't move to Trash when they're actively being used by an application, have restrictive permissions, are system-protected files, or are corrupted. Close all related applications and check file permissions first.
Can Error 8058 damage my Mac?
No, Error 8058 itself cannot damage your Mac. It's simply a protection mechanism preventing deletion of files that are in use or locked. However, forcing deletion of important system files could cause issues.
How do I prevent macOS Error 8058?
Prevent Error 8058 by always closing applications before trying to delete their associated files, avoiding deletion of system files, and regularly maintaining proper file permissions on your Mac.