Delete current artifact ids before loading new ones to prevent repeated saving.

Fixes #4280