> ## Documentation Index
> Fetch the complete documentation index at: https://helix-claude-document-return-objects-rxi6v.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# E628

# DROP Can Only Be Applied to Traversals

## Erroneous Code Example

This error occurs when you try to use `DROP` on an expression that is not a traversal.

<CodeGroup>
  ```helixql queries.hx theme={null}
  QUERY deleteValue(value: String) =>
      DROP value
  ```
</CodeGroup>

## Solution

Ensure `DROP` is applied to a traversal that returns nodes, edges, or vectors.

<CodeGroup>
  ```helixql queries.hx theme={null}
  QUERY deleteUser(id: ID) =>
      user <- N<User>(id)
      DROP user
  ```

  ```helixql schema.hx theme={null}
  N::User {
      name: String,
  }
  ```
</CodeGroup>
