# How to delete a module?

CAUTION

  • This action is irreversible w.r.t using a SMILE command to undo the delete, you can only revert it using version control actions/machine history.
  1. Enter sbt shell, run command delete-module

    [Lottery] $ delete-module LotteryData
    [info] deleting module :LotteryData
    [info] deleted dir : ../training/lottery/modules/lottery/LotteryData
    ...
    [info] deleted module : LotteryData
    [info] remove the entry from .ksmile file and smile
    
  2. Open .ksmile file, remove the module definition

  3. run command smile