Algorithm of deletion for files and folders was changed to "if can" approach. The cascade delete stops on the fist locked file.