@ Override public void discardState ( ) throws Exception { FileSystem fs = getFileSystem ( ) ; fs . delete ( filePath , false ) ; }
Discard the state by deleting the file that stores the state . If the parent directory of the state is empty after deleting the state file it is also deleted .