# deleteTemplate method

void deleteTemplate(

1. String? id

)

Deletes a template from the face indexer.

param id ID of the face template to delete. throws FaceException An error has occurred during Face Library execution.

## Implementation

    void deleteTemplate(String? id) {
      Pointer<Char>? pId = id?.toNativeUtf8().cast<Char>();
      try {
        var err = faceSDK.id3FaceIndexer_DeleteTemplate(_pHandle.value, pId ?? nullptr);
        if (err != FaceError.success.value) {
          throw FaceException(err);
        }
      } finally {
        if (pId != null) {
          calloc.free(pId);
        }
      }
    }