Remove the missplaced semicolon after $customer
.
xquery version "1.0" encoding "UTF-8";
for $customer in doc("Customers.xml")/dataroot/Customers
where $customer/CustomerID = "ALFKI"
return delete node $customer (: here was the semicolon :)
Otherwise, your XQuery is valid.