The Fauna service will be ending on May 30, 2025.

For more information on the service wind down, see our announcement and the Fauna Service End-of-Life FAQ.

Delete an index

Problem

You need to delete an index from the current database.

Solution

Use the Delete function:

Copied!
Delete(Index('all_of_the_people'))
{
  ref: Index("all_of_the_people"),
  ts: 1631836244370000,
  active: true,
  serialized: true,
  name: 'all_of_the_people',
  source: Collection("People"),
  values: [
    { field: [ 'data', 'first' ] },
    { field: [ 'data', 'last' ] },
    { field: [ 'ref' ] }
  ],
  partitions: 8,
  data: { team: 'Wizards' }
}
Query metrics:
  •    bytesIn:   40

  •   bytesOut:  376

  • computeOps:    1

  •    readOps:    0

  •   writeOps:    1

  •  readBytes:  554

  • writeBytes:  487

  •  queryTime: 54ms

  •    retries:    0

\