delete

public static void delete(File directory)

Reclaims directory, preferring the background hand-off and falling back to a synchronous recursive delete when the rename fails.