# trash Icon

> The trash icon from Heroicons as Compose ImageVector Kotlin code, Android Vector Drawable XML and SVG.

- Library: [Heroicons](https://composables.com/icons/icon-libraries/heroicons.md)
- License: MIT (full text in the [Heroicons library page](https://composables.com/icons/icon-libraries/heroicons.md))
- Styles: [Outline](https://composables.com/icons/icon-libraries/heroicons/trash.md?v=outline), [Solid](https://composables.com/icons/icon-libraries/heroicons/trash.md?v=solid), [Mini](https://composables.com/icons/icon-libraries/heroicons/trash.md?v=mini), [Micro](https://composables.com/icons/icon-libraries/heroicons/trash.md?v=micro)

## Compose ImageVector (Kotlin)

For Jetpack Compose and Compose Multiplatform. Download: `https://composables.com/download/icons/heroicons/trash.kt`

```kotlin
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeJoin
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.graphics.vector.path
import androidx.compose.ui.unit.dp

val HeroiconsTrash: ImageVector
    get() {
        if (_HeroiconsTrash != null) return _HeroiconsTrash!!
        
        _HeroiconsTrash = ImageVector.Builder(
            name = "trash",
            defaultWidth = 24.dp,
            defaultHeight = 24.dp,
            viewportWidth = 24f,
            viewportHeight = 24f
        ).apply {
            path(
                fill = SolidColor(Color.Transparent),
                stroke = SolidColor(Color.Black),
                strokeLineWidth = 1.5f,
                strokeLineJoin = StrokeJoin.Miter
            ) {
                moveTo(14.74f, 9f)
                lineToRelative(-0.346f, 9f)
                moveToRelative(-4.788f, 0f)
                lineTo(9.26f, 9f)
                moveToRelative(9.968f, -3.21f)
                curveToRelative(0.342f, 0.052f, 0.682f, 0.107f, 1.022f, 0.166f)
                moveToRelative(-1.022f, -0.165f)
                lineTo(18.16f, 19.673f)
                arcToRelative(2.25f, 2.25f, 0f, false, true, -2.244f, 2.077f)
                horizontalLineTo(8.084f)
                arcToRelative(2.25f, 2.25f, 0f, false, true, -2.244f, -2.077f)
                lineTo(4.772f, 5.79f)
                moveToRelative(14.456f, 0f)
                arcToRelative(48.108f, 48.108f, 0f, false, false, -3.478f, -0.397f)
                moveToRelative(-12f, 0.562f)
                curveToRelative(0.34f, -0.059f, 0.68f, -0.114f, 1.022f, -0.165f)
                moveToRelative(0f, 0f)
                arcToRelative(48.11f, 48.11f, 0f, false, true, 3.478f, -0.397f)
                moveToRelative(7.5f, 0f)
                verticalLineToRelative(-0.916f)
                curveToRelative(0f, -1.18f, -0.91f, -2.164f, -2.09f, -2.201f)
                arcToRelative(51.964f, 51.964f, 0f, false, false, -3.32f, 0f)
                curveToRelative(-1.18f, 0.037f, -2.09f, 1.022f, -2.09f, 2.201f)
                verticalLineToRelative(0.916f)
                moveToRelative(7.5f, 0f)
                arcToRelative(48.667f, 48.667f, 0f, false, false, -7.5f, 0f)
            }
        }.build()
        
        return _HeroiconsTrash!!
    }

private var _HeroiconsTrash: ImageVector? = null
```

## Android Vector Drawable (XML)

Download: `https://composables.com/download/icons/heroicons/trash.xml`

```xml
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="24dp"
    android:height="24dp"
    android:viewportWidth="24"
    android:viewportHeight="24">
    <path
        android:strokeColor="@android:color/black"
        android:strokeWidth="1.5"
        android:pathData="m14.74,9l-0.346,9m-4.788,0L9.26,9m9.968,-3.21c0.342,0.052 0.682,0.107 1.022,0.166m-1.022,-0.165L18.16,19.673a2.25,2.25 0 0,1 -2.244,2.077H8.084a2.25,2.25 0 0,1 -2.244,-2.077L4.772,5.79m14.456,0a48.108,48.108 0 0,0 -3.478,-0.397m-12,0.562c0.34,-0.059 0.68,-0.114 1.022,-0.165m0,0a48.11,48.11 0 0,1 3.478,-0.397m7.5,0v-0.916c0,-1.18 -0.91,-2.164 -2.09,-2.201a51.964,51.964 0 0,0 -3.32,0c-1.18,0.037 -2.09,1.022 -2.09,2.201v0.916m7.5,0a48.667,48.667 0 0,0 -7.5,0" />
</vector>
```

## SVG

Download: `https://composables.com/download/icons/heroicons/trash.svg`

```svg
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" data-slot="icon"><path stroke-linecap="round" stroke-linejoin="round" d="m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"/></svg>
```
