# ContactsContract.DeletedContacts

Added in[API level 18](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# DeletedContacts

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/provider/ContactsContract.DeletedContacts "View this page in Java")  

```
class DeletedContacts : ContactsContract.DeletedContactsColumns
```

|---|--------------------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                                         ||
| ↳ | [android.provider.ContactsContract.DeletedContacts](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.DeletedContacts#) |

Constants for the deleted contact table. This table holds a log of deleted contacts.

Log older than[DAYS_KEPT_MILLISECONDS](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.DeletedContacts#DAYS_KEPT_MILLISECONDS:kotlin.Long)may be deleted.

## Summary

|                                                                                                                                            Constants                                                                                                                                             ||
|------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| static[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) | [DAYS_KEPT_MILLISECONDS](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.DeletedContacts#DAYS_KEPT_MILLISECONDS:kotlin.Long) Milliseconds that the delete log will be kept. |

| Inherited constants ||
|---|---|
| From class[DeletedContactsColumns](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.DeletedContactsColumns) |----------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [CONTACT_DELETED_TIMESTAMP](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.DeletedContactsColumns#CONTACT_DELETED_TIMESTAMP:kotlin.String) <br /> Time (milliseconds since epoch) that the contact was deleted. <br />                                                                                     | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [CONTACT_ID](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.DeletedContactsColumns#CONTACT_ID:kotlin.String) <br /> A reference to the[ContactsContract.Contacts._ID](https://developer.android.com/reference/kotlin/android/provider/BaseColumns#_ID:kotlin.String)that was deleted. Type: INTEGER <br /> | ||

|                                                                                                                                                                        Properties                                                                                                                                                                        ||
|------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| static[Uri](https://developer.android.com/reference/kotlin/android/net/Uri.html#)! | [CONTENT_URI](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.DeletedContacts#CONTENT_URI:android.net.Uri) The content:// style URI for this table, which requests a directory of raw contact rows matching the selection criteria. |

## Constants

### DAYS_KEPT_MILLISECONDS

Added in[API level 18](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val DAYS_KEPT_MILLISECONDS: Long
```

Milliseconds that the delete log will be kept. After this time, delete records may be deleted.  

    Value: 2592000000L

## Properties

### CONTENT_URI

Added in[API level 18](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val CONTENT_URI: Uri!
```

The content:// style URI for this table, which requests a directory of raw contact rows matching the selection criteria.