updates post method to delete data/api/txt before writing to it so forma...

...tting is correct with more than one post request