Edit file File name : wp-cli.postrm Content :#!/bin/sh set -e case "$1" in purge) test -L /usr/bin/wp && rm /usr/bin/wp ;; *) ;; esac exit 0 Save