public returnTypes deleteChunk(byte[] fileID, int chunkNo) {
		String recID = Packet.bytesToHex(fileID);
		for(BackupChunk chunk : backedUpChunks) {
			String comID = Packet.bytesToHex(chunk.getFileID());
			if(comID.equals(recID) && chunk.getChunkNo() == chunkNo) {
				String filepath = "storage/";
				filepath += chunk.getFilename();
				
				boolean success = (new File (filepath)).delete();
				if (success) {
					currSize -= chunk.getSize();
					success = backedUpChunks.remove(chunk);
					
					if(success) {System.out.println("The file has been successfully deleted");updateLog();}
					else {System.out.println("Error occurred while deleting the file."); return returnTypes.FAILURE;}
				}
				else {System.out.println("Error occurred while deleting the file"); return returnTypes.FAILURE;}
				
				return returnTypes.SUCCESS;
			}
		}

		return returnTypes.FILE_DOES_NOT_EXIST;
	}