Index: lib/plugins/acts_as_customizable/lib/acts_as_customizable.rb
<+>UTF-8
===================================================================
diff --git a/lib/plugins/acts_as_customizable/lib/acts_as_customizable.rb b/lib/plugins/acts_as_customizable/lib/acts_as_customizable.rb
--- a/lib/plugins/acts_as_customizable/lib/acts_as_customizable.rb	(revision 41653:c704208ed465fcb5f84cbfa7b6d4050e229d081b)
+++ b/lib/plugins/acts_as_customizable/lib/acts_as_customizable.rb	(revision 41653+:c704208ed465+)
@@ -38,10 +38,18 @@
           send :include, Redmine::Acts::Customizable::InstanceMethods
           validate :validate_custom_field_values
           after_save :save_custom_field_values
+          before_destroy :remove_attachment_custom_values, prepend: true #prepent parameter is mandatory to call callback before deleting dependent custom_values
         end
       end
 
       module InstanceMethods
+        def remove_attachment_custom_values
+          attachment_cvs = custom_values.select{|cf| cf.custom_field.field_format == "attachment"}
+          attachment_cvs.each do |cv|
+            Attachment.find(cv.value).delete_from_disk
+          end
+        end
+
         def self.included(base)
           base.extend ClassMethods
         end

