To elaborate Anthony's point, one option is to delete the source code (change it to an empty main function), save the script, and then delete the script. This will prevent users from using the source code. If you've already "removed" the script, you can re-enable it, delete the source code, save the script, and then "remove" it again.