Added option to destroy file in views