# How to archive events?

  1. Suffix the event definition with keyword archived

    event LotteryRan(lotteryName:String,winner:String) archived
    
  2. Refresh eclipse project and ensure there is no usage of this event in the spec.

  3. run compile command & fix the usage error if any.

Note: Projection code for the archived events can stay, since the events could be possibly replayed / re-projected.