# trash Icon

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

- Library: [Radix](https://composables.com/icons/icon-libraries/radix.md)
- License: MIT (full text in the [Radix library page](https://composables.com/icons/icon-libraries/radix.md))
- Categories: [Objects](https://composables.com/icons/categories/objects.md)

## Compose ImageVector (Kotlin)

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

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

val RadixTrash: ImageVector
    get() {
        if (_RadixTrash != null) return _RadixTrash!!
        
        _RadixTrash = ImageVector.Builder(
            name = "trash",
            defaultWidth = 24.dp,
            defaultHeight = 24.dp,
            viewportWidth = 15f,
            viewportHeight = 15f
        ).apply {
            path(
                fill = SolidColor(Color.Black)
            ) {
                moveTo(11.5f, 3f)
                curveTo(11.7761f, 3f, 12f, 3.22386f, 12f, 3.5f)
                curveTo(12f, 3.77614f, 11.7761f, 4f, 11.5f, 4f)
                horizontalLineTo(11f)
                verticalLineTo(12f)
                lineTo(10.9951f, 12.1025f)
                curveTo(10.9472f, 12.573f, 10.573f, 12.9472f, 10.1025f, 12.9951f)
                lineTo(10f, 13f)
                horizontalLineTo(5f)
                lineTo(4.89746f, 12.9951f)
                curveTo(4.42703f, 12.9472f, 4.05278f, 12.573f, 4.00488f, 12.1025f)
                lineTo(4f, 12f)
                verticalLineTo(4f)
                horizontalLineTo(3.5f)
                curveTo(3.22386f, 4f, 3f, 3.77614f, 3f, 3.5f)
                curveTo(3f, 3.22386f, 3.22386f, 3f, 3.5f, 3f)
                horizontalLineTo(11.5f)
                close()
                moveTo(5f, 12f)
                horizontalLineTo(10f)
                verticalLineTo(4f)
                horizontalLineTo(5f)
                verticalLineTo(12f)
                close()
                moveTo(9.5f, 1f)
                curveTo(9.77614f, 1f, 10f, 1.22386f, 10f, 1.5f)
                curveTo(10f, 1.77614f, 9.77614f, 2f, 9.5f, 2f)
                horizontalLineTo(5.5f)
                curveTo(5.22386f, 2f, 5f, 1.77614f, 5f, 1.5f)
                curveTo(5f, 1.22386f, 5.22386f, 1f, 5.5f, 1f)
                horizontalLineTo(9.5f)
                close()
            }
        }.build()
        
        return _RadixTrash!!
    }

private var _RadixTrash: ImageVector? = null
```

## Android Vector Drawable (XML)

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

```xml
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="24dp"
    android:height="24dp"
    android:viewportWidth="15"
    android:viewportHeight="15">
    <path
        android:fillColor="@android:color/black"
        android:pathData="M11.5,3C11.7761,3 12,3.22386 12,3.5C12,3.77614 11.7761,4 11.5,4H11V12L10.9951,12.1025C10.9472,12.573 10.573,12.9472 10.1025,12.9951L10,13H5L4.89746,12.9951C4.42703,12.9472 4.05278,12.573 4.00488,12.1025L4,12V4H3.5C3.22386,4 3,3.77614 3,3.5C3,3.22386 3.22386,3 3.5,3H11.5ZM5,12H10V4H5V12ZM9.5,1C9.77614,1 10,1.22386 10,1.5C10,1.77614 9.77614,2 9.5,2H5.5C5.22386,2 5,1.77614 5,1.5C5,1.22386 5.22386,1 5.5,1H9.5Z" />
</vector>
```

## SVG

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

```svg
<svg viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M11.5 3C11.7761 3 12 3.22386 12 3.5C12 3.77614 11.7761 4 11.5 4H11V12L10.9951 12.1025C10.9472 12.573 10.573 12.9472 10.1025 12.9951L10 13H5L4.89746 12.9951C4.42703 12.9472 4.05278 12.573 4.00488 12.1025L4 12V4H3.5C3.22386 4 3 3.77614 3 3.5C3 3.22386 3.22386 3 3.5 3H11.5ZM5 12H10V4H5V12ZM9.5 1C9.77614 1 10 1.22386 10 1.5C10 1.77614 9.77614 2 9.5 2H5.5C5.22386 2 5 1.77614 5 1.5C5 1.22386 5.22386 1 5.5 1H9.5Z" fill="currentColor"/></svg>
```
