> For the complete documentation index, see [llms.txt](https://docs.facephi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.facephi.com/docs.facephi-pt-br/sdks/backend-sdk/selphid/technical_documentation/api_reference/gallery-1-n/api-v1-selphid-identify-removeid-galleryid-templateid.md).

# /api/v1/selphid/identify/removeid/{galleryId}/{templateId}

Deletes a facial template from a gallery, using its Id.

```json
{"openapi":"3.0.0","info":{"title":"SelphID-SDK Rest API","version":"6.21.0"},"security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"},"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key","description":"Default API key header name. It can be overridden at startup with `auth_api_key_header_name`."}},"schemas":{"GalleryId":{"type":"string","description":"The name of a facial template gallery."},"FacialTemplateId":{"type":"string","description":"The name of a facial template in a gallery."},"Succeed":{"type":"boolean","description":"Indicates whether the operation was successful or not."},"BadRequestResult":{"type":"object","description":"Result when incorrect parameters arrive in the request.","properties":{"status":{"type":"number"},"error":{"type":"string"},"timeStamp":{"$ref":"#/components/schemas/TimeStamp"}}},"TimeStamp":{"type":"string","description":"A date and time value in \"%Y-%m-%dT%H:%M:%SZ\" format."},"ExceptionResult":{"type":"object","description":"An error occurred in the call to the SelphID-SDK backend.","properties":{"status":{"type":"number"},"error":{"type":"string"},"exception":{"type":"string"},"timeStamp":{"$ref":"#/components/schemas/TimeStamp"}}}}},"paths":{"/api/v1/selphid/identify/removeid/{galleryId}/{templateId}":{"delete":{"description":"Deletes a facial template from a gallery, using its Id.","tags":["Gallery 1:n"],"parameters":[{"in":"path","name":"galleryId","schema":{"$ref":"#/components/schemas/GalleryId"},"required":true},{"in":"path","name":"templateId","schema":{"$ref":"#/components/schemas/FacialTemplateId"},"required":true}],"responses":{"200":{"description":"Indicates whether the element could be deleted or not.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Succeed"}}}},"400":{"description":"Incorrect parameters in the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResult"}}}},"500":{"description":"An error occurred in the call to the SelphID-SDK backend.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExceptionResult"}}}}}}}}}
```
