public boolean delete ( ) { boolean deleted = false ; for ( File child : file . listFiles ( ) ) { deleted = child . delete ( ) || deleted ; } deleted = file . delete ( ) || deleted ; return deleted ; }
Deletes the bucket and all of its contents .