Is possible to splice item in firebase database array?

Viewed 534

I have in my firebase database structure like this:

enter image description here

I want to delete categories1, but when I am sending DELETE request to *.firebaseio.com/categories/1.json I get:

enter image description here

I want to change rest indexes in my array to get array without null items. Is possible after delete categories[1] to get new array like this?:

enter image description here

2 Answers
Related