The Keep attribute is a library wide default that effects whether or not files are deleted when a new element or generation is created. When keep is on creating or replacing an element will not delete the file used for that operation. When the keep attribute is off those files will be deleted. The default is to delete files during creation of a new element or generation.