Implemented delete flat