clean up formatting and remove delete action from post api endpoint