content/commands/ts.deleterule.md
{{< note >}} This command's behavior varies in clustered Redis environments. See the [multi-key operations]({{< relref "/develop/using-commands/multi-key-operations" >}}) page for more information. {{< /note >}}
Delete a compaction rule
is key name for the source time series.
</details> <details open><summary><code>destKey</code></summary>is key name for destination (compacted) time series.
</details><note><b>Note:</b> This command does not delete the compacted series.</note>
| Redis Software | Redis Cloud | <span style="min-width: 9em; display: table-cell">Notes</span> | |:----------------------|:-----------------|:------| | <span title="Supported">✅ Supported</span> | <span title="Supported">✅ Flexible & Annual</span> <span title="Supported">✅ Free & Fixed</nobr></span> | |
{{< multitabs id="ts-deleterule-return-info" tab1="RESP2" tab2="RESP3" >}}
One of the following:
OK when the compaction rule is deleted successfully.-tab-sep-
One of the following:
OK when the compaction rule is deleted successfully.{{< /multitabs >}}
[TS.CREATERULE]({{< relref "commands/ts.createrule/" >}})
[RedisTimeSeries]({{< relref "/develop/data-types/timeseries/" >}})