The contents of /etc/letsencrypt/
remains intact if you remove the certbot package, so your certificates should remain safe. Don't use the "purge" option of apt
, as that will remove that directory!
Making a temporary and simple backup is always recommended though:
cp -a /etc/letsencrypt /etc/letsencrypt-backup
Or something like that.