fakesink
The plug-in fakesink is used to discard all the received data.
The following code block provides an example.
gst-launch-1.0 filesrc location=/tmp/test ! fakesink
The plug-in is part of the standard GStreamer plug-in tools, see GStreamer Official Documentation on Plug-in for more information on how to use the plug-in.