Raspberry pi 3 ERROR

hi, i have another problem with my raspberry. I want to setup my raspberry as a Web Server so the programms that i need to install are that :

  1. Nginx
    I configured my raspberry but the next day it doesn’t work properly. It’s power on but dietpi doesn’t load When i put on my SD Card on my computer i see that the files has been deleted.

Thank you