Delete an index
Solution
Use the Delete
function:
map[active:true data:map[team:Wizards] name:all_of_the_people partitions:8 ref:{all_of_the_people 0xc0001804b0 0xc0001804b0 <nil>} serialized:true source:{People 0xc0001805a0 0xc0001805a0 <nil>} ts:1631911525160000 values:[map[field:[data first]] map[field:[data last]] map[field:[ref]]]]
{
ref: Index("all_of_the_people"),
ts: 1631909688850000,
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' }
}
{'ref': Ref(id=all_of_the_people, collection=Ref(id=indexes)), 'ts': 1631911056420000, 'active': True, 'serialized': True, 'name': 'all_of_the_people', 'source': Ref(id=People, collection=Ref(id=collections)), 'values': [{'field': ['data', 'first']}, {'field': ['data', 'last']}, {'field': ['ref']}], 'partitions': 8, 'data': {'team': 'Wizards'}}
{
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' }
}
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!