[Feature Request] Allow data deletion on client deletion
Hi,
When deleting a client configuration, it would be nice to have an option to delete the client's data too. In both protocol 1 and 2, deleting the client data directory is sufficient.
To add a bit of paranoia, as of today, I detect the client data directory and make sure it's a real client directory before doing anything (ie deleting it) with:
# directory is set in burp-server.conf
# dedup_group is set in burp-server.conf
# Protocol 1
clientdatadir = "$directory/$clientName"
# Protocol 2
clientdatadir = "$directory/$dedup_group/clients/$clientName"
# Check if directory is an actual client dir containing backups
if [ $(find "$clientdatadir" -mindepth 2 -maxdepth 2 -type f -name "backup_stats" 2> /dev/null | wc -l) -gt 0 ]; then
echo "Yes, we may delete it !"
fi
Best regards.