Identify the packages:
$ dpkg -l | grep "wolfram"
ii wolfram-engine 11.3.0+2018052403 armhf Mathematica® and the Wolfram Language
ii wolframscript 1.2.0-18 armhf WolframScript (for the Command Line)
Remove the packages:
# apt remove wolfram-engine wolframscript
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
coinor-libipopt1v5 libexiv2-14 libgmime-2.6-0 libmumps-seq-4.10.0 libraw15 lxkeymap python-cairo
python-gobject python-gobject-2 python-gtk2 python-xklavier realpath
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
wolfram-engine wolframscript
0 upgraded, 0 newly installed, 2 to remove and 16 not upgraded.
After this operation, 833 MB disk space will be freed.
Do you want to continue? [Y/n] Y
Remove anything unneeded:
# apt auto-remove