The drain valve allows all of the tank's contents to empty into an external container when it is opened.   The drain valve is typically located near the outlet connection on the bottom of most air compressor tanks.