Your three questions about ~/Sites
:
What is this folder’s intended purpose?
macOS includes the Apache web server (disabled by default) and ~/Sites
is the default location for any web sites. I also use mine to store web sites which don't use a web server, rather accessed directly from Finder.
Is there any safe way for me to remove it?
You are having difficult removing it because it has an Access Control List (ACL) with an entry denying delete. Command ls -le ~
shows that my ~/Sites has an ACL with just one Access Control Entry (ACE) 0: group:everyone deny delete
.
So before deleting it you need to remove the ACL. I believe this old Q&A is still correct https://superuser.com/questions/299758/what-is-the-mac-terminal-command-to-remove-acl
Use the chmod -N ~/Sites
to completely remove the ACL. But first read man chmod
which describes setting and manipulating ACLs and their ACEs.
If I can’t delete, can I use it to hold any kind of files anything I want?
Though you can delete it, you can keep it and use it hold anything you want.
If at some time in future you were to enable the Apache web server, the content of ~/Sites
would become visible. That might be enough reason not to use it for your files without some forethought.
~/Sites
folder.