# DeleteColumn

Artifact: [androidx.room:room-common](https://developer.android.com/jetpack/androidx/releases/room) [View Source](https://cs.android.com/search?q=file:androidx/room/DeleteColumn.+class:androidx.room.DeleteColumn) 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 DeleteColumn
  ```
- android

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

*** ** * ** ***

Repeatable annotation declaring the deleted columns 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/DeleteColumn.Entries` Container annotation for the repeatable annotation `https://developer.android.com/reference/kotlin/androidx/room/DeleteColumn`. |

| ### Public constructors |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/room/DeleteColumn#DeleteColumn(kotlin.String,kotlin.String)(tableName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, columnName: 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/DeleteColumn#columnName()` Name of the column deleted in the `https://developer.android.com/reference/kotlin/androidx/room/AutoMigration#to()` version of the database. | Cmn android |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/room/DeleteColumn#tableName()` Name of the table in the `https://developer.android.com/reference/kotlin/androidx/room/AutoMigration#from()` version of the database the column was deleted from. | Cmn android |

## Public constructors

### DeleteColumn

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

```
DeleteColumn(tableName: String, columnName: String)
```

## Public properties

### columnName

Cmn android

```
val columnName: String
```

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

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

### 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 the column was deleted from.

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