Here is the command to empty a directory / remove all files from a directory in Ubuntu Linux:
rm -r /your-directory/
If your directory is in a nested path you can remove it like this:
rm -r /yourpath/yoursubpath/your-directory/
If the command is giving permission error for some write protected files, you can run this:
sudo rm -r /yourpath/yoursubpath/your-directory/