At times it is required to reset the Test Env. CDP or any other peer back to freshly installed state, to do that, follow these simple steps and take a backup file system before doing so.
Then start peer service. It will re-create all those files and directories, just like the first time it starts up.
NOTE: These steps are only for non production environment, do not try these step in production.