DELETE DYNAMICS..ACTIVITY
DELETE DYNAMICS..SY00800
DELETE DYNAMICS..SY00801
DELETE TEMPDB..DEX_LOCK
DELETE TEMPDB..DEX_SESSION
There was a typo in the script. Try running what is above with everyone out of GP. The double period was missing in the DEX_SESSION line.