You cannot do this as stadnard, you if you are using WMSII you can block the locations, but if not you cannot. If you want to delete the warehouse you need to remove the stock, delete the locations and then delete it. You may also consider renaming it to ZZ with a description of DO NOT USE etc, depends why it is closed.