Firebase Extensions will shut down on March 31, 2027. You will not be able to install or edit your existing extensions after this date. We recommend moving to self-managed function kits using our user migration guide.Learn more

Limit Child Nodes

Made by Firebase

Limits the number of nodes to a specified maximum count in a specified Realtime Database path.

500+
installs
Works with
Realtime Database
Version
0.1.20 | Source code
License
Apache-2.0
Publisher
Firebase
Report
Bug
Abuse

No publisher authored function kit replacement for this extension is available. If you want to be able to update this extension after the shutdown on March 31st we recommend you follow our guide for forking the extension and maintaining it yourself as a function kit.

How this extension works

Use this extension to control the maximum number of nodes stored in a Firebase Realtime Database path.

If the number of nodes in your specified Realtime Database path exceeds the specified max count, this extension deletes the oldest nodes first until there are the max count number of nodes remaining.

Additional setup

Before installing this extension, make sure that you’ve set up a Realtime Database instance in your Firebase project.

Billing

To install an extension, your project must be on the Blaze (pay as you go) plan

  • This extension uses other Firebase and Google Cloud Platform services, which have associated charges if you exceed the service’s no-cost tier:
    • Cloud Functions (Node.js 10+ runtime. See FAQs)
    • Firebase Realtime Database