# DeleteTable

Artifact: [androidx.room:room-common](https://developer.android.com/jetpack/androidx/releases/room) [View Source](https://cs.android.com/search?q=file:androidx/room/DeleteTable.+class:androidx.room.DeleteTable) Added in [2.4.0](https://developer.android.com/jetpack/androidx/releases/room#2.4.0)

*** ** * ** ***

Common/AllAndroid/JVMNative/C/iOSJavaScript
- Cmn

  ```
  @Repeatable
  @Target(allowedTargets = [AnnotationTarget.CLASS])
  @Retention(value = AnnotationRetention.BINARY)
  @OptionalExpectation
  annotation DeleteTable
  ```
- android

  ```
  @Repeatable(value = DeleteTable.Entries)
  @Target(allowedTargets = [AnnotationTarget.CLASS])
  @Retention(value = AnnotationRetention.BINARY)
  annotation DeleteTable
  ```

*** ** * ** ***

Repeatable annotation declaring the deleted tables in the `https://developer.android.com/reference/kotlin/androidx/room/AutoMigration#to()` version of an auto migration.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/room/AutoMigration` |   |

## Summary

| ### Nested types |
|---|
| `@https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.annotation/-target/index.html(allowedTargets = [https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.annotation/-annotation-target/-c-l-a-s-s/index.html]) @https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.annotation/-retention/index.html(value = https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.annotation/-annotation-retention/-b-i-n-a-r-y/index.html) annotation https://developer.android.com/reference/kotlin/androidx/room/DeleteTable.Entries` Container annotation for the repeatable annotation `https://developer.android.com/reference/kotlin/androidx/room/DeleteTable`. |

| ### Public constructors |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/room/DeleteTable#DeleteTable(kotlin.String)(tableName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)` | Cmn android |

| ### Public properties |
|---|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/room/DeleteTable#tableName()` Name of the table in the `https://developer.android.com/reference/kotlin/androidx/room/AutoMigration#from()` version of the database to be deleted. | Cmn android |

## Public constructors

### DeleteTable

Cmn android Added in [2.8.5](https://developer.android.com/jetpack/androidx/releases/room#2.8.5)

```
DeleteTable(tableName: String)
```

## Public properties

### tableName

Cmn android

```
val tableName: String
```

Name of the table in the `https://developer.android.com/reference/kotlin/androidx/room/AutoMigration#from()` version of the database to be deleted.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | Name of the table. |