by purging the pipe with a gas or a mixture of gas and liquid