better delete for directory