Use rm -f to avoid error message at first compilation when the folders do not exist. -r is not needed as they are not true folders but only links.