A long time ago on the forum there was a submission about deleting a file or folder using some PHP code that would remove/unlock the /pub folder if you deleted your store for some reason.

Does anyone know that code? or the link to a post about this?

I started creating a new store but had to delete the files and now I'm left with the /pub folder?

CHMOD to 777 does not work

Any help would be great so I can print this out or email it to myself for safe keeping. I tried for about an hour searching this forum to no avail.