How to force delete all files in the trash

I have some folders in the trash can and when I try to empty the trash it throws an error saying


Can't delete “dest” because its pathname is too long.

How can I force empty the trash can in macos big sur ?

MacBook Pro 13″, macOS 11.1

Posted on Aug 8, 2021 12:46 PM

Reply
Question marked as Top-ranking reply

Posted on Aug 8, 2021 01:02 PM

I solved the issue by making sure the terminal had full access to the disk and ran this piece of code in the terminal :

rm -rvf ~/.Trash

Similar questions

1 reply

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to force delete all files in the trash

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.