# ClearCredentialRegistryRequest.PerTypeConfig

Artifact: [androidx.credentials.registry:registry-provider](https://developer.android.com/jetpack/androidx/releases/credentials-registry) [View Source](https://cs.android.com/search?q=file:androidx/credentials/registry/provider/ClearCredentialRegistryRequest.kt+class:androidx.credentials.registry.provider.ClearCredentialRegistryRequest.PerTypeConfig) Added in [1.0.0-alpha05](https://developer.android.com/jetpack/androidx/releases/credentials-registry#1.0.0-alpha05)

*** ** * ** ***


```
public final class ClearCredentialRegistryRequest.PerTypeConfig
```

<br />

*** ** * ** ***

Configures how to clear the registries for a given type.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/credentials/registry/provider/ClearCredentialRegistryRequest.PerTypeConfig#PerTypeConfig(kotlin.Boolean,kotlin.String,kotlin.collections.List)( boolean isDeleteAll, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html type, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html> registryIds )` constructs an instance of `https://developer.android.com/reference/androidx/credentials/registry/provider/ClearCredentialRegistryRequest.PerTypeConfig` |

| ### Public methods |
|---|---|
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html>` | `https://developer.android.com/reference/androidx/credentials/registry/provider/ClearCredentialRegistryRequest.PerTypeConfig#getRegistryIds()()` the IDs of the registries for the given type to delete, matching one or more `https://developer.android.com/reference/androidx/credentials/registry/provider/RegisterCredentialsRequest#id()` used during credential registration |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/credentials/registry/provider/ClearCredentialRegistryRequest.PerTypeConfig#getType()()` the type of registry to clear, matching the `https://developer.android.com/reference/androidx/credentials/registry/provider/RegisterCredentialsRequest#type()` provided provided during the `https://developer.android.com/reference/androidx/credentials/registry/provider/RegistryManager#registerCredentials(androidx.credentials.registry.provider.RegisterCredentialsRequest)` call |
| `final boolean` | `https://developer.android.com/reference/androidx/credentials/registry/provider/ClearCredentialRegistryRequest.PerTypeConfig#isDeleteAll()()` whether to delete all registries for the given type |

## Public constructors

### PerTypeConfig

Added in [1.0.0-alpha05](https://developer.android.com/jetpack/androidx/releases/credentials-registry#1.0.0-alpha05)

```
public PerTypeConfig(
    boolean isDeleteAll,
    @NonNull String type,
    @NonNull List<@NonNull String> registryIds
)
```

constructs an instance of `https://developer.android.com/reference/androidx/credentials/registry/provider/ClearCredentialRegistryRequest.PerTypeConfig`

| Parameters |
|---|---|
| `boolean isDeleteAll` | whether to delete all registries for the given type |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html type` | the type of registry to clear, matching the `https://developer.android.com/reference/androidx/credentials/registry/provider/RegisterCredentialsRequest#type()` provided provided during the `https://developer.android.com/reference/androidx/credentials/registry/provider/RegistryManager#registerCredentials(androidx.credentials.registry.provider.RegisterCredentialsRequest)` call |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html> registryIds` | the IDs of the registries for the given type to delete, matching one or more `https://developer.android.com/reference/androidx/credentials/registry/provider/RegisterCredentialsRequest#id()` used during credential registration |

## Public methods

### getRegistryIds

Added in [1.0.0-alpha05](https://developer.android.com/jetpack/androidx/releases/credentials-registry#1.0.0-alpha05)

```
public final @NonNull List<@NonNull String> getRegistryIds()
```

the IDs of the registries for the given type to delete, matching one or more `https://developer.android.com/reference/androidx/credentials/registry/provider/RegisterCredentialsRequest#id()` used during credential registration

### getType

Added in [1.0.0-alpha05](https://developer.android.com/jetpack/androidx/releases/credentials-registry#1.0.0-alpha05)

```
public final @NonNull String getType()
```

the type of registry to clear, matching the `https://developer.android.com/reference/androidx/credentials/registry/provider/RegisterCredentialsRequest#type()` provided provided during the `https://developer.android.com/reference/androidx/credentials/registry/provider/RegistryManager#registerCredentials(androidx.credentials.registry.provider.RegisterCredentialsRequest)` call

### isDeleteAll

Added in [1.0.0-alpha05](https://developer.android.com/jetpack/androidx/releases/credentials-registry#1.0.0-alpha05)

```
public final boolean isDeleteAll()
```

whether to delete all registries for the given type