deleteResource

open override fun deleteResource(qualifiedName: String, completion: () -> Unit, failureHandler: (ErrorCode, Throwable?) -> Unit)

Delete the ResourceType linked to the qualified name. If the ResourceType is a ResourceType.PACKAGE or a ResourceType.DIRECTORY, all of its children should be deleted as well. All deleted references should be removed from the reference tree.

If it is a ResourceType.REPRESENTATIVE, the package it represents should be deleted and handled as if the package were the target of deletion.

Parameters

qualifiedName

The fully-qualified name of the directory.

completion

A function to be run upon the successful creation of the directory.

failureHandler

A function that accepts a ErrorCode that describes the failure and a nullable Throwable.