public void deleteInode(RpcContext rpcContext, LockedInodePath inodePath, long opTimeMs)
      throws FileDoesNotExistException {
    Preconditions.checkState(inodePath.getLockPattern() == LockPattern.WRITE_EDGE);
    Inode inode = inodePath.getInode();

    mState.applyAndJournal(rpcContext, DeleteFileEntry.newBuilder()
        .setId(inode.getId())
        .setRecursive(false)
        .setOpTimeMs(opTimeMs)
        .build());

    if (inode.isFile()) {
      rpcContext.getBlockDeletionContext().registerBlocksForDeletion(inode.asFile().getBlockIds());
    }
  }
public void deleteInode ( RpcContext rpcContext , LockedInodePath inodePath , long opTimeMs ) throws FileDoesNotExistException { Preconditions . checkState ( inodePath . getLockPattern ( ) == LockPattern . WRITE_EDGE ) ; Inode inode = inodePath . getInode ( ) ; mState . applyAndJournal ( rpcContext , DeleteFileEntry . newBuilder ( ) . setId ( inode . getId ( ) ) . setRecursive ( false ) . setOpTimeMs ( opTimeMs ) . build ( ) ) ; if ( inode . isFile ( ) ) { rpcContext . getBlockDeletionContext ( ) . registerBlocksForDeletion ( inode . asFile ( ) . getBlockIds ( ) ) ; } }
Deletes a single inode from the inode tree by removing it from the parent inode.

@param rpcContext the rpc context
@param inodePath the {@link LockedInodePath} to delete
@param opTimeMs the operation time
@throws FileDoesNotExistException if the Inode cannot be retrieved