Some reasons the logs that the branch srx generated are needed to be deleted. Which Junos cli is it needed to perform and which log files? and how to verify?
> file delete /var/log/test <<< file name test being the sample file logs
or from the shell:
> start shell% suPassword:re0:/var/home/labroot # rm -rf /var/log/<filename>
Are you looking for storage cleanup ?
storage cleanup? This is another thing!... When doing storage cleanup, is this deleting all log files that junos generated?
Just imagine, you are selling your ex/srx devices to another company as second hand. Of course default/original configuration must be loaded before handover . I do understand this. No problem.
But my question is how to make sure the logs or log files are deleted before handover? and how to double verify this?
In that case, I would suggest to perform a system zeroize & followed by factory-defaults
You can use "request system storage cleanup dry-run" this will list out the logs and the files which it will remove
Then you can use "request system storage cleanup" to clean them
Again you can run the dry-run command to check if any logs and file left out
cleanup command will not remove the configurations
Another option would be to system zerioze, which will wipe out everything then you can apply the basic configuration
Method confirm if any log files are present would be check "file list /var/log" path where by default all the log files are stored