delete a single file

def delete_file(f, ignore_errors=False):
	"""
	delete a single file
	"""
	try:
		os.remove(f)
	except Exception as ex:
		if ignore_errors:
			return
		print('ERROR deleting file ' + str(ex))