If you want to delete files within a directory in Linux, you can use this simple command
rm -f /your/directory/*
If you want to delete files and directories recursively within a directory in Linux, you can use this command instead 🙂
rm -rf /your/directory/*