Updated destroy to make $key optional