To remove all files and folders including hidden files such .gitignore, .htaccess, .git etc. on bash you can use the following command:
1 |
$> rm -rf /PATH/TO/FOLDER/{*,.*} |
Is the same as:
1 2 |
$> rm -rf ${DOCROOT}/* $> rm -rf ${DOCROOT}/.* |
But ever shorter. 😉