System Data is filling up storage

I am trying to clean space by getting rid of system data but the biggest hit to it all is MetaData Specifically


Finder/Library/MetaData/CoreSpotlight.


Is this something I can safely remove or trim down or is this essential to the use of my Mac? I have a Mac mini If that means anything.


Posted on Jun 26, 2024 6:09 PM

Reply
Question marked as Top-ranking reply

Posted on Jun 27, 2024 12:52 AM


Have you run Disk Utility's Disk First Aid on all connected drives?


In Disk Utility>View, select Show all Devices, highlight the top left entry.


Run Disk First Aid on all items in the left panel, from top down.


That is Spotlight so you might rebuild the Spotlight index, most effective method...


Manually Rebuilding Spotlight via Terminal

If the aforementioned Spotlight control panel approach doesn’t spur a reindexation of the drive, you may need to initiate it manually through the command line. Open Terminal and use the following command string to do so:


sudo mdutil -E /

This basically asks for temporary super user status, which is why Terminal may ask you for your password (it may not if you’ve used a sudo command recently or are already logged in as a super user or root. The command asks the unix tool mdutil to reindex the spotlight database for everything on the computer, including external drives, mounted disk images, etc.


sudo mdutil -i on /

Rebuilding a drive index can take a long time, so be prepared to wait whether you do it through the System Preference panel or the command line.


f still need be…


Open Terminal and run each of these one at a time


/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user


sudo will ask you for an Admin password that won't be echoed.

Carefully type your admin password when asked & hit enter.


sudo /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -seed -lint -r -f -v -dump -domain local -domain system -domain user -domain network


killall Dock


sudo mdutil -E /


sudo mdutil -i on /


Rebuilding a drive index can take a long time, so be prepared to wait whether you do it through the System Preference panel or the command line.


4 replies
Question marked as Top-ranking reply

Jun 27, 2024 12:52 AM in response to JteslaR


Have you run Disk Utility's Disk First Aid on all connected drives?


In Disk Utility>View, select Show all Devices, highlight the top left entry.


Run Disk First Aid on all items in the left panel, from top down.


That is Spotlight so you might rebuild the Spotlight index, most effective method...


Manually Rebuilding Spotlight via Terminal

If the aforementioned Spotlight control panel approach doesn’t spur a reindexation of the drive, you may need to initiate it manually through the command line. Open Terminal and use the following command string to do so:


sudo mdutil -E /

This basically asks for temporary super user status, which is why Terminal may ask you for your password (it may not if you’ve used a sudo command recently or are already logged in as a super user or root. The command asks the unix tool mdutil to reindex the spotlight database for everything on the computer, including external drives, mounted disk images, etc.


sudo mdutil -i on /

Rebuilding a drive index can take a long time, so be prepared to wait whether you do it through the System Preference panel or the command line.


f still need be…


Open Terminal and run each of these one at a time


/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user


sudo will ask you for an Admin password that won't be echoed.

Carefully type your admin password when asked & hit enter.


sudo /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -seed -lint -r -f -v -dump -domain local -domain system -domain user -domain network


killall Dock


sudo mdutil -E /


sudo mdutil -i on /


Rebuilding a drive index can take a long time, so be prepared to wait whether you do it through the System Preference panel or the command line.


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.

System Data is filling up storage

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