diff --git a/resources/linux/debian/postrm.template b/resources/linux/debian/postrm.template index 238a566c..c03fb131 100755 --- a/resources/linux/debian/postrm.template +++ b/resources/linux/debian/postrm.template @@ -9,3 +9,10 @@ rm -f /usr/bin/@@NAME@@ if hash update-mime-database 2>/dev/null; then update-mime-database /usr/share/mime fi + +case "$1" in + purge|P) + rm -rf /home/${SUDO_USER}/.config/Code\ -\ OSS + rm -rf /home/${SUDO_USER}/.vscode-oss + ;; +esac diff --git a/resources/linux/rpm/code.spec.template b/resources/linux/rpm/code.spec.template index c9e9a3c3..4132bdb1 100644 --- a/resources/linux/rpm/code.spec.template +++ b/resources/linux/rpm/code.spec.template @@ -58,6 +58,8 @@ update-mime-database /usr/share/mime &> /dev/null || : %postun if [ $1 = 0 ]; then rm -f /usr/bin/@@NAME@@ + rm -rf /home/${SUDO_USER}/.config/Code\ -\ OSS + rm -rf /home/${SUDO_USER}/.vscode-oss fi # Update mimetype database for removed workspace mimetype