@frappe.whitelist()
def remove_attach():
	import frappe.utils.file_manager
	fid = frappe.form_dict.get('fid')
	return frappe.utils.file_manager.remove_file(fid)
Multiple fields can be updated at once
dataset/ETHPy150Open frappe/frappe/frappe/desk/form/utils.py/remove_attach--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/tests/modeltests/update/tests.py/AdvancedTests.test_update_multiple_fields