When launching your inotifywait once (without the -m flag), you can easily use xargs :
inotifywait -r --format '%w%f' -e create /test -q | xargs /bin/rm
that will wait for a file creation in /test, give the filename to xargs and give this arg to /bin/rm
to delete the file, then it will exit.
If you need to continuously watch your directory (with the -m param of inotifywait), create a script file like this :
inotifywait -m -r --format '%w%f' -e create /test | while read FILE
do
/bin/rm $FILE
done
And then, every newly file created in you /test directory will be removed.