Fix prefix duplication bug

Fix the prefix being duplicated when the function is used multiple times.
Add command 'destroy'

Add command 'destroy'. Update dialect for command 'destroy'.