# 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)

*** ** * ** ***


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

<br />

*** ** * ** ***

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

| See also |
|---|---|
| `https://developer.android.com/reference/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) public annotation https://developer.android.com/reference/androidx/room/DeleteTable.Entries` Container annotation for the repeatable annotation `https://developer.android.com/reference/androidx/room/DeleteTable`. |

| ### Public methods |
|---|---|
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/room/DeleteTable#getTableName()()` Name of the table in the `https://developer.android.com/reference/androidx/room/AutoMigration#from()` version of the database to be deleted. |

## Public methods

### getTableName

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

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

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | Name of the table. |