Added support to logical delete