Enforce cleanup when publish.