[BUGFIX] Replace function "delete" by "remove"

"delete" is a reserved keyword according to ECMAScript.

Change-Id: Ia60afcabd8aad317c2834b5c1a5f916ce2eeabd7
Releases: 0.2.0
Resolves: #53815