How to turn off S3 storage?

I would also go in the admin area of discourse and uncheck all the boxes that activate S3 mode.