Web DeleteClass API

DELETE /deleteclass?bcid={BCID}

Deletes all biometric data associated with a Biometric Class ID from the system.

Request Information


bcid Required. The Biometric Class ID (BCID) of the class that shall get deleted.


This API call requires Basic Authentication, i.e. you have to provide an HTTP authorization header using the authorization method Basic and the base64 encoded string App-ID:App-Secret (therefore the transport is secured using TLS/SSL). To receive the necessary BWS Web API access data (App-ID and App-Secret) you have to register your application on the BWS Management Portal first. This requires a valid BWS subscription.

Response Information

The call returns one of the standard HTTP status codes:

Response HTTP Status Codes

200 OK The class has been deleted.
400 Bad Request An invalid BCID has been specified.
401 Unauthorized No or an invalid authentication header has been specified, Basic Authentication is required.
403 Forbidden Access has been denied (typically due to a wrong or invalid app-id or BCID).
500 Internal Server Error A server side exception occurred.

Sample Code

using (var client = new HttpClient())
    client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic",
    using (var response = await client.DeleteAsync(ENDPOINT + $"deleteclass?bcid={bcid}"))
        return response.IsSuccessStatusCode;
// using OkHttpClient from the OkHttp library
HttpUrl url = HttpUrl.parse("https://bws.bioid.com/extension/deleteclass").newBuilder()
        .addQueryParameter("bcid", STORAGE + "." + PARTITION + "." + CLASS_ID)
Request request = new Request.Builder()
        .addHeader("Authorization", Credentials.basic(APP_IDENTIFIER, APP_SECRET))
OkHttpClient client = new OkHttpClient();
Response response = client.newCall(request).execute();
if (response.code() == 200) {
    System.out.println("class has been deleted");