You can only delete a warehouse if there are no stock items linked to it. You can check if any stock items are linked to the warehouse by preparing a status report.
Note: You cannot delete the only remaining warehouse.
Open: Stock Control > Stock Maintenance > Locations.