36

Firebase Analytics has a 'User properties', when we created one, we have 2 fields: name and description. When this property is created, I just have one option, which is edit.

This edit option only gives permission to change the description but not to change the user property name.

Is it possible to delete this user property?

AL.
  • 36,815
  • 10
  • 142
  • 281
HubDev
  • 371
  • 1
  • 3
  • 3

3 Answers3

24

Since 2016:

No, not yet.

The official statement is: at the moment, your only options are to create a new project or to wait until we add the ability to delete slots. No ETA on that yet.

from: Steve Ganem at https://groups.google.com/forum/#!topic/firebase-talk/Z-dPnzcW_Gw

2021 Update:

  • The feature is now called: Custom Definitions
  • You cannot delete a custom definition
  • You can archive a custom definition

Firebase custom definition archive button in german

Alexander Thiele
  • 657
  • 5
  • 13
8

It seems that an archive option has been recently added, it is also mentioned in the docs.

firebase user properties

mathew11
  • 3,382
  • 3
  • 25
  • 32
  • 2
    From the docs: If you have reached your limit of 25 user properties and need to create new ones, you can archive the ones that are no longer relevant, and then after 48 hours, create a new one. During the first 48 hours after archiving a user property, you can restore it. After 48 hours, the user property is permanently archived. To restore a user property during the 48 hours after archiving, you set and register a new property with the same name per the instructions in the preceding section. – iPhoney Aug 20 '19 at 08:43
0

There's a workaround. You can reset current analytics for the user like this.

FirebaseApp.configure()

Analytics.setUserID("tt")

// Register properties test1, test2,…test26 (the 26 will fail)
for i in (1...26) {
    Analytics.setUserProperty("test", forName: "test\(i)")
}

Analytics.logEvent("bang", parameters: [:])

InstanceID.instanceID().deleteID { (error) in
    InstanceID.instanceID().getID(handler: { (token, err) in
        Analytics.resetAnalyticsData()

        Analytics.setUserID("tt")

        // Now you can set new 25 properties
        for i in (26...30) {
            Analytics.setUserProperty("test", forName: "test\(i)")
        }

        Analytics.logEvent("bang", parameters: [:])
    })
}

This is handy in case you export events to BigQuery for example.

Aleš Oskar Kocur
  • 1,381
  • 1
  • 13
  • 29