* Completely deletes a script from storage * @param {string} appId - The application ID * @param {number} scriptId - The script ID to delete * @returns {Promise}
(appId, scriptId)
| 167 | * @returns {Promise} |
| 168 | */ |
| 169 | async deleteScript(appId, scriptId) { |
| 170 | const allScripts = await this.getScripts(appId); |
| 171 | const updatedScripts = allScripts.filter(script => script.id !== scriptId); |
| 172 | await this.saveScripts(appId, updatedScripts); |
| 173 | } |
| 174 | |
| 175 | /** |
| 176 | * Saves scripts to either server or local storage based on configuration and user preference |
no test coverage detected