implements delete command and setActions function