Open this page in the API Guide

DataCube.detachTemplate Method

Detach the template, copy all template's content to the dashboard, and remove the template