Best practice to remove a lun?

Are we talking about a file or block based LUN?