working version of ArtifactManager.deleteObject()