MCPcopy Create free account
hub / github.com/parse-community/parse-dashboard / deleteScript

Method deleteScript

src/lib/ScriptManager.js:169–173  ·  view source on GitHub ↗

* Completely deletes a script from storage * @param {string} appId - The application ID * @param {number} scriptId - The script ID to delete * @returns {Promise}

(appId, scriptId)

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 2

getScriptsMethod · 0.95
saveScriptsMethod · 0.95

Tested by

no test coverage detected