Sudo rm -Rf /Library/Caches/*
Sudo rm -Rf /System/Library/Caches/*
Sudo rm -Rf ~/Library/Caches/*
macOS Support Resources and Information
Sudo rm -Rf /Library/Caches/*
Sudo rm -Rf /System/Library/Caches/*
Sudo rm -Rf ~/Library/Caches/*
NAME
dsmemberutil — various operations for the membership APIs, including state dump, check memberships, UUIDs, etc.
Example:
dsmemberutil flushcache
link:
NAME
dscacheutil — gather information, statistics and initiate queries to the Directory Service cache.
Example:
dscacheutil -flushcache
notes: flush directory service cache