destroy

The destroy() method destroys the instance of the DataSource widget.

var dataSource = new shield.DataSource({
    read: "/get_all.php",
    modify: {
        create: "/handle_updates.php",
        update: "/handle_updates.php",
        remove: "/handle_updates.php"
    }
    schema: {
        fields: {
            Id: { path: "id", type: Number },
            Name: { path: "name", type: String }
        }
    }
});

dataSource.destroy();