diff --git a/product/ERP5/Document/BusinessTemplate.py b/product/ERP5/Document/BusinessTemplate.py
index a015cfa553dc58e16eccb62349fdbd25c4462da9..bf95843ae3ac299c628cd36c0a4b9796eac329a5 100644
--- a/product/ERP5/Document/BusinessTemplate.py
+++ b/product/ERP5/Document/BusinessTemplate.py
@@ -298,8 +298,6 @@ def deleteSkinSelection(skin_tool, skin_name):
       skin_tool.getPortalObject().changeSkin(None)
 
 def unregisterSkinFolderId(skin_tool, skin_folder_id, skin_selection_list):
-  skin_folder_id = skin_folder.getId()
-
   for skin_selection in skin_selection_list:
     selection = skin_tool.getSkinPath(skin_selection)
     selection = selection.split(',')