- Added error handling for the `deleteUser` method to throw an error if the response contains an error property.