Implemented delete empty parents functionality for NDK release 19