You can manually accomplish this with dd. random is not required and will take a long time, zeroes are fine.

after you ‘revert’ to factory default you can do:

dd if=/dev/zero of=/root/bigfile bs=1M

after its done (it will throw an out of space error):

rm /root/bigfile

and you’re done. This will only work on the current boot flash if you are on a dual boot device.