The clean script shipped with the Magento downloader actually deletes too much. It’s safe to run this command after updating to keep the installation “small”.

rm -rf cache/* data/* docs/* download/* temp/* tests/*