Enabled destroy of file in views