'Bad CPU type in executable on mac

I have installed pdftk on my mac and when i try to check the version by the command

pdftk -verison
-bash: /usr/local/bin/pdftk: Bad CPU type in executable

how can i fix this?



Solution 1:[1]

use this command to remove the pdftk file rm -rf /usr/local/bin/pdftk

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 sakshi malik