Find all files in the current directory, excluding those with the extension ".pdf", and for each one, print its name and then delete it.
find . -type f | grep -v ".pdf" | xargs -I {} echo "{}" \; rm -f {}