# Cleanup Policies Hybrid, Delete

**URL:** <https://forum.confluent.io/t/cleanup-policies-hybrid-delete/3333>\
**Category:** Clients\
**Created:** [10 November 2021 09:29 UTC](https://forum.confluent.io/t/cleanup-policies-hybrid-delete/3333 "2021-11-10T09:29:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nihaarn97](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/nihaarn97/32/1150_2.png) [@nihaarn97](https://forum.confluent.io/u/nihaarn97)\
**Post date:** [10 November 2021 09:29 UTC](https://forum.confluent.io/t/cleanup-policies-hybrid-delete/3333/1 "2021-11-10T09:29:36Z")

</div>

I created a topic with the following configurations -

```auto
cleanup.policy = delete
segment.bytes = 16328
retention.ms = 5000

```

After inserting 500 messages I expected the messages to be deleted after 5 seconds however, this was not the case. The messages were deleted after 3 minutes.

I then created a topic with the following configurations -

```auto
cleanup.policy = compact,delete
segment.bytes = 16328
retention.ms = 5000

```

I inserted the same 500 messages again, and observed that they get deleted within a couple of seconds.

Why does deletion trigger immediately in a **hybrid** cleanup policy as compared to the **delete** cleanup policy? Is there any configuration that is causing this that I’m not aware of?
