Delete user account after checkout completion Im trying to create a rule that deletes an user account after checkout completion for New users, but it is not working. Can anyone please help me to figure out what is wrong? after checkout completion, check if user is not admin or any other role, then delete the account. After anonymous checkout, an user account is created (blocked, registered). 

{ "rules_delete_user_account_after_checkout" : {
  "LABEL" : "Delete User Account after Checkout",
  "PLUGIN" : "reaction rule",
  "WEIGHT" : "3",
  "OWNER" : "rules",
  "REQUIRES" : [ "rules", "php", "uc_cart" ],
  "ON" : { "uc_checkout_complete" : [] },
  "IF" : [
    {
      "NOT data_is" : {
        "data" : [ "order:customer:roles" ],
        "value" : { "value" : { "3" : "3" } }
      }
    }
  ],
  "DO" : [
    { "php_eval" : { "code" : "\/\/ Delete the user.\r\nuser_delete(NULL, [order-uid]);" } }
  ]
}}
Deleting a user after checkout is a bad idea. I assume you know this, but the client is asking/forcing you to do this.

check this link - automatically delete all Ubercart-created users,  this has a solution.