How To Remove Unnecessary Label Cache Entries of a Flow/Subflow/ActionDescriptionFollow the instructions below to remove unnecessary label cache entries of a Flow/Subflow/Action from your ServiceNow instance. Release or EnvironmentAllInstructions1.In the left navigation bar on your ServiceNow instance, search for Scripts - Background and select Scripts - Background under System Definition. 2.For flow/subflow, copy the script from the attached label_cache_clean_flow_script.txt file. For flow action, copy the script from the attached label_cache_clean_action_script.txt file. 3.Paste the script in background scripts. 4.Edit the script content to change the value for debugMode and targetName: // Script Parameters // // If true then do not actually modify the flow/subflow/action's label cache (debug mode). // If false then update the flow/subflow/action's label cache (real mode). var debugMode = true; // // If empty, then execute for all flow/subflow/action defintion and master snapshot files. // Otherwise, only run for the flow/subflow/action with name = targetName. (not the internal name) var targetName = ""; 5.On the Run script screen, change "in scope" to global, uncheck "record for rollback" and "cancel after 4 hours". 6.Click the Run script button.Additional InformationIMPORTANT NOTES: 1.Please execute the script in your Dev or Test instance first, and only after testing, execute the script in Production instance.2.This script only deletes the unnecessary label cache in the server. UI can hold a copy of a label cache.Therefore refresh the browser that has the action opened once this script is executed for the action.If this script is executed and the action is saved using UI, the previous label cache (before the delete) will be saved since the label cache from the UI will be sent to the server and saved.3.If debugMode is true then do not actually modify the flow/subflow/action's label cache (debug mode). To update the flow/subflow/action's label cache, please set debugMode to false. 4.For targetName, please execute the script with specific flow/subflow/action name first. Then, please execute with targetName ""(empty), if needed