0

After booting my Mac into recovery mode I’m trying to run “rm -rf Mobile\ Documents” from “~/Library”.

But I’m getting a bunch of errors saying “Directory not empty”. I thought that “-r” would solve this problem. Any ideas how to fix this?

Charlie Fish
  • 101
  • 2
  • In recovery you don't have a ~/Library as you don't really have a user & you're not booted to the regular boot drive. Sounds like you're trying to delete something from the recovery image you're booted from. – Tetsujin Aug 31 '19 at 15:08
  • @Tetsujin I mounted the drive using Disk Utility in Recovery Mode prior to running that command. – Charlie Fish Aug 31 '19 at 15:09
  • You still don't have a ~/Library, as you have no user. You'd probably need /Volumes/Macintosh HD/Users/[me]/Library – Tetsujin Aug 31 '19 at 15:10
  • @Tetsujin Yes sorry. That is what I meant. When I run “pwd” I get “/Volumes/Macintosh HD - Data/Users/charliefish/Library” – Charlie Fish Aug 31 '19 at 15:12
  • 2
    Possible duplicate of [Trying to delete directory with "rm -rf", but get message that it's not empty](https://superuser.com/questions/467059/trying-to-delete-directory-with-rm-rf-but-get-message-that-its-not-empty) – Andrew Morton Aug 31 '19 at 15:18

0 Answers0