```sql

create table A ( A date) Engine=MergeTree order by A TTL A+interval 1 year;

alter table A reset SETTING TTL;

show create table A;

CREATE TABLE default.A
(
    `A` Date
)
ENGINE = MergeTree
ORDER BY A
TTL A + toIntervalYear(1)
SETTINGS index_granularity = 8192
```
{
    LOG_TRACE(log, "dropIfEmpty");
    auto lock = lockParts();
    if (!data_parts_by_info.empty())
        return;
    try
    {
        for (const auto & disk : getDisks())
        {
            if (disk->isBroken())
                continue;
            
            disk->removeFileIfExists(fs::path(relative_data_path) / MergeTreeData::FORMAT_VERSION_FILE_NAME);
            disk->removeDirectory(fs::path(relative_data_path) / MergeTreeData::DETACHED_DIR_NAME);
            disk->removeDirectory(relative_data_path);
        }
    }
    catch (...)
    {
        
        tryLogCurrentException(__PRETTY_FUNCTION__);
    }
}
namespace
{
bool isSafeForKeyConversion(const IDataType * from, const IDataType * to)