@Override
    public void removeChunk(String fileName, int chunkNum) throws RemoteException 
    {
        HDFSFile file = this.fileList.get(fileName);
        if (file == null) {
            System.out.println("[Error**] " + fileName + "not found");
            return;
        }

        HDFSChunk chunk = file.getChunkTable().get(chunkNum);
        if (chunk == null) {
            return;
        }

        try {
            file.removeChunk(chunkNum);
            FileIO.deleteFile(this.dataNodePath + chunk.getChunkName());
        }
        catch (IOException e) {
            e.printStackTrace();
            System.out.println("[Error**] Cannot remove " + chunk.getChunkName());
            return;
        }

        System.out.println("[LOG] " + chunk.getChunkName() + " deleted from storage");
        return;
    }