Storage API

DeleteComponent

Delete a global or a local component

await storageInterface.deleteComponent({  local: true,  array: [{name: "test/local-test"}],   deleteFiles: true});

Parameters

settings
JSON object
local
boolean- If the component is local or global
array
array- An array of components to delete ( Only the 'name' property is needed )
deleteFiles
boolean- Component files aren't deleted by default. Check this property to delete them

Return Value

A Promise that is resolved if the process went well