Delete an index

Problem

You need to delete an index from the current database.

Solution

Use the Delete function:

Copied!
(('all_of_the_people'))
{
  ref: ("all_of_the_people"),
  ts: 1631836244370000,
  active: true,
  serialized: true,
  name: 'all_of_the_people',
  source: ("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

Is this article helpful? 

Tell Fauna how the article can be improved:
Visit Fauna's forums or email docs@fauna.com

Thank you for your feedback!