wipes directory before creating posts