Delete Function

If the root of the tree is empty, isempty() function gives a boolean
value true and set the availability variable false.