Function to unlink all pipes at once, for future pipe saving