#3 adding config option for soft delete
#3 adding conditions for soft delete