# How to archive events?
Suffix the event definition with keyword
archivedevent LotteryRan(lotteryName:String,winner:String) archivedRefresh eclipse project and ensure there is no usage of this event in the spec.
run
compilecommand & fix the usage error if any.
Note: Projection code for the archived events can stay, since the events could be possibly replayed / re-projected.