Delete a function

Creating and updating a function requires:

Problem

You need to delete a function from the current database.

Solution

Use the Delete function:

Copied!
(('create_post'))
{
  ref: ("create_post"),
  ts: 1635293600520000,
  name: 'create_post',
  body: ((["title", "body", "author"], (("posts"), {data: {title: ("title"), body: ("body"), author: ("author")}}))),
  data: { env: 'test' }
}
Query metrics:
  •    bytesIn:   37

  •   bytesOut:  384

  • computeOps:    1

  •    readOps:    0

  •   writeOps:    1

  •  readBytes:  739

  • writeBytes:  508

  •  queryTime: 21ms

  •    retries:    0

Discussion

When a function is deleted, queries that call the function fail with an error.

More information

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!