# 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.
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 smileOpen .ksmile file, remove the module definition
run command
smile