Here, we can see the command to remove all files and directories from current directory in Linux via Terminal. It is a simple command, but only thing is, we have to ensure that the user have rights to remove the files and directories.
First open Terminal and focus to the directory in which you want to remove the contents using the command cd. Once you have gone to that directory use the following command to delete the entire content inside that directory;
rm -R *
Example: user@server:~/<focused directory path>$ rm -R *