It removes all generated files but not the base file when we clear the corresponding imagefield in the form and hit save.