'remove with verbose option

I've following directory structure,

test/{test00.txt..test99.txt}

If I use rm -v -rf test,

rm -v -rf test

removed 'test/test00.txt' 
removed 'test/test01.txt' 
removed 'test/test02.txt' 
removed 'test/test03.txt' 
removed 'test/test04.txt'
removed 'test/test05.txt' 
removed 'test/test06.txt' 
.... 
removed 'test/test96.txt' 
removed 'test/test97.txt' 
removed 'test/test98.txt'
removed 'test/test99.txt' 
removed directory: 'test'

Is there a way to hide all the verbose output generated from below test folder?

Can I only see something like,

 removed directory: 'test'


Solution 1:[1]

Try something like

rm -v -rf test | grep -v 'test/test'

Explanation

rm -v -rf output is followed by | to grep, which by inverse selection (-v switch) deletes everything, what it matches.

Solution 2:[2]

Maybe, you just want to disable verbose mode so no non-error output is given back by rm.

To do so, just delete switch -v.

Your command will become

rm -rf test

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1
Solution 2