Deividas Posted July 17, 2016 Posted July 17, 2016 Hi there, I was making small program or api for self destroying (I needed to put it in my private program). So I decided to share it with all, because I think some people will found this useful. To fast self destroy of hdd write in: pastebin run eKz1RmEP And If you need to use it in your program, this code will help you: local fs = require("filesystem") for file in fs.list("") do print("Deleting \"" .. file .. "\"") fs.remove(file) end Cheers! Quote
MeltingBrain Posted July 19, 2016 Posted July 19, 2016 Hi there, I was making small program or api for self destroying (I needed to put it in my private program). So I decided to share it with all, because I think some people will found this useful. To fast self destroy of hdd write in: pastebin run eKz1RmEP And If you need to use it in your program, this code will help you: local fs = require("filesystem") for file in fs.list("") do print("Deleting \"" .. file .. "\"") fs.remove(file) end Cheers! This in any way won't destroy the HDD, but destroy the data in it, and this might not work since some files might be protected or in use. To correctly destroy all your system data you would need to override the init.lua file and do a low-level clean of your system to properly destroy the HDD. If you just want to clear your HDD, run the computer with OpenOS floppy, then find the mount of your HDD and delete all data in it simply by using rmdir command. Quote
Gorzoid Posted July 19, 2016 Posted July 19, 2016 How to destroy: drop in lava. How to wipe: shift right click(or just right click can't remember) and swap to unmanaged and back. I think you can also put it in crafting grid to wipe not sure tho Quote